Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 219 for Comparator (0.07 sec)

  1. android/guava/src/com/google/common/primitives/Shorts.java

       *
       * <p>The returned comparator is inconsistent with {@link Object#equals(Object)} (since arrays
       * support only identity equality), but it is consistent with {@link Arrays#equals(short[],
       * short[])}.
       *
       * @since 2.0
       */
      public static Comparator<short[]> lexicographicalComparator() {
        return LexicographicalComparator.INSTANCE;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/primitives/Shorts.java

       *
       * <p>The returned comparator is inconsistent with {@link Object#equals(Object)} (since arrays
       * support only identity equality), but it is consistent with {@link Arrays#equals(short[],
       * short[])}.
       *
       * @since 2.0
       */
      public static Comparator<short[]> lexicographicalComparator() {
        return LexicographicalComparator.INSTANCE;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/SortedIterablesTest.java

            SortedIterables.hasSameComparator(
                Ordering.natural().reverse(), Sets.newTreeSet(Ordering.natural().reverse())));
      }
    
      public void testComparator() {
        assertEquals(Ordering.natural(), SortedIterables.comparator(Sets.newTreeSet()));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/SortedIterablesTest.java

            SortedIterables.hasSameComparator(
                Ordering.natural().reverse(), Sets.newTreeSet(Ordering.natural().reverse())));
      }
    
      public void testComparator() {
        assertEquals(Ordering.natural(), SortedIterables.comparator(Sets.newTreeSet()));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ForwardingNavigableSet.java

     * invoke methods, they invoke methods on the {@code ForwardingNavigableSet}.
     *
     * <p>Each of the {@code standard} methods uses the set's comparator (or the natural ordering of the
     * elements, if there is no comparator) to test element equality. As a result, if the comparator is
     * not consistent with equals, some of the standard implementations may violate the {@code Set}
     * contract.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

    import java.lang.annotation.Retention;
    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    import java.lang.reflect.Method;
    import java.lang.reflect.Type;
    import java.util.Arrays;
    import java.util.Comparator;
    import javax.lang.model.element.Modifier;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tester of subtyping relationships between two types.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        assertEquals(42, queue.maximumSize);
        assertSame(SOME_COMPARATOR, queue.comparator());
      }
    
      // TODO: tests that check the weird interplay between expected size,
      // maximum size, size of initial contents, default capacity...
    
      private static void checkNatural(MinMaxPriorityQueue<Integer> queue) {
        assertSame(Ordering.natural(), queue.comparator());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

     */
    package jcifs.smb;
    
    
    import java.io.IOException;
    import java.net.InetAddress;
    import java.net.UnknownHostException;
    import java.util.Arrays;
    import java.util.Comparator;
    import java.util.LinkedList;
    import java.util.List;
    import java.util.Map;
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.ConcurrentLinkedQueue;
    
    import org.slf4j.Logger;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Dec 20 14:09:34 UTC 2020
    - 12.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> orderKeysBy(Comparator<? super K> keyComparator) {
          super.orderKeysBy(keyComparator);
          return this;
        }
    
        /**
         * {@inheritDoc}
         *
         * @since 8.0
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) {
          super.orderValuesBy(valueComparator);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  10. android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

    import java.nio.FloatBuffer;
    import java.nio.IntBuffer;
    import java.nio.LongBuffer;
    import java.nio.ShortBuffer;
    import java.nio.charset.Charset;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Comparator;
    import java.util.Currency;
    import java.util.HashMap;
    import java.util.HashSet;
    import java.util.LinkedHashMap;
    import java.util.LinkedHashSet;
    import java.util.LinkedList;
    import java.util.List;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 17.2K bytes
    - Viewed (0)
Back to top