Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 181 - 190 of 261 for comparators (0.09 seconds)

  1. android/guava-testlib/test/com/google/common/collect/testing/SafeTreeMapTest.java

                    MapFeature.ALLOWS_NULL_VALUES,
                    CollectionFeature.SUPPORTS_ITERATOR_REMOVE,
                    MapFeature.GENERAL_PURPOSE)
                .named("SafeTreeMap with natural comparator")
                .createTestSuite());
        suite.addTest(
            NavigableMapTestSuiteBuilder.using(
                    new TestStringSortedMapGenerator() {
                      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  2. guava-testlib/test/com/google/common/collect/testing/SafeTreeMapTest.java

                    MapFeature.ALLOWS_NULL_VALUES,
                    CollectionFeature.SUPPORTS_ITERATOR_REMOVE,
                    MapFeature.GENERAL_PURPOSE)
                .named("SafeTreeMap with natural comparator")
                .createTestSuite());
        suite.addTest(
            NavigableMapTestSuiteBuilder.using(
                    new TestStringSortedMapGenerator() {
                      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

     * returned.
     *
     * <p>All default instances returned by {@link #get} are generics-safe. Clients won't get type
     * errors for using {@code get(Comparator.class)} as a {@code Comparator<Foo>}, for example.
     * Immutable empty instances are returned for collection types; {@code ""} for string; {@code 0} for
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 20.9K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/primitives/Chars.java

       * array as the lesser. For example, {@code [] < ['a'] < ['a', 'b'] < ['b']}.
       *
       * <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(char[],
       * char[])}.
       *
       * @since 2.0
       */
      public static Comparator<char[]> lexicographicalComparator() {
        return LexicographicalComparator.INSTANCE;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 24.2K bytes
    - Click Count (0)
  5. 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;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        }
    
        SortedSet<V> getSortedSetDelegate() {
          return (SortedSet<V>) getDelegate();
        }
    
        @Override
        public @Nullable Comparator<? super V> comparator() {
          return getSortedSetDelegate().comparator();
        }
    
        @Override
        @ParametricNullness
        public V first() {
          refreshIfEmpty();
          return getSortedSetDelegate().first();
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Aug 12 15:51:57 GMT 2025
    - 46.9K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/collect/IteratorsTest.java

        Comparator<TestDatum> comparator = Comparator.comparing(d -> d.letter);
    
        // When elements compare as equal (both C's have same letter), our merge should always return C1
        // before C2, since C1 is from the first iterator.
    
        Iterator<TestDatum> merged =
            Iterators.mergeSorted(ImmutableList.of(left.iterator(), right.iterator()), comparator);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 57.3K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/primitives/DoublesTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testLexicographicalComparatorSerializable() {
        Comparator<double[]> comparator = Doubles.lexicographicalComparator();
        assertThat(SerializableTester.reserialize(comparator)).isSameInstanceAs(comparator);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testStringConverterSerialization() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 30.9K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/primitives/LongsTest.java

                new long[] {MAX_VALUE, MAX_VALUE, MAX_VALUE});
    
        Comparator<long[]> comparator = Longs.lexicographicalComparator();
        Helpers.testComparator(comparator, ordered);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testLexicographicalComparatorSerializable() {
        Comparator<long[]> comparator = Longs.lexicographicalComparator();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 28.8K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/primitives/ShortsTest.java

                new short[] {GREATEST, GREATEST, GREATEST});
    
        Comparator<short[]> comparator = Shorts.lexicographicalComparator();
        Helpers.testComparator(comparator, ordered);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testLexicographicalComparatorSerializable() {
        Comparator<short[]> comparator = Shorts.lexicographicalComparator();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 27.6K bytes
    - Click Count (0)
Back to Top