Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 165 for Comparators (0.04 sec)

  1. android/guava/src/com/google/common/collect/ImmutableList.java

       * {@code ImmutableList}, use {@code stream.sorted(comparator).collect(toImmutableList())}.
       *
       * @throws NullPointerException if any element in the input is null
       * @since 21.0
       */
      public static <E> ImmutableList<E> sortedCopyOf(
          Comparator<? super E> comparator, Iterable<? extends E> elements) {
        checkNotNull(comparator);
        @SuppressWarnings("unchecked") // all supported methods are covariant
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        assertEquals(
            Collections.reverseOrder(), ((ImmutableSortedSet<Integer>) multimap.get("a")).comparator());
        assertTrue(multimap.get("x") instanceof ImmutableSortedSet);
        assertEquals(
            Collections.reverseOrder(), ((ImmutableSortedSet<Integer>) multimap.get("x")).comparator());
        assertTrue(multimap.asMap().get("a") instanceof ImmutableSortedSet);
        assertEquals(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java

          return notSubtype(shop);
        }
    
        @TestSubtype(suppressGetSubtype = true)
        public Comparator<Electronics> supertypeIsTopLevelClass(
            Mall<Indoor>.Retailer<Electronics> shop) {
          return isSubtype(shop);
        }
    
        @TestSubtype
        public Comparator<Electronics> topLevelClassIsNotSupertypeDueToTypeParameter(
            Mall<Indoor>.Retailer<Grocery> shop) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

                new long[] {GREATEST, GREATEST - 1L},
                new long[] {GREATEST, GREATEST},
                new long[] {GREATEST, GREATEST, GREATEST});
    
        Comparator<long[]> comparator = UnsignedLongs.lexicographicalComparator();
        Helpers.testComparator(comparator, ordered);
      }
    
      public void testSort() {
        testSort(new long[] {}, new long[] {});
        testSort(new long[] {2}, new long[] {2});
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/FluentIterable.java

       * FluentIterable} in the order specified by {@code comparator}. To produce an {@code
       * ImmutableList} sorted by its natural ordering, use {@code toSortedList(Ordering.natural())}.
       *
       * <p><b>{@code Stream} equivalent:</b> {@code
       * ImmutableList.copyOf(stream.sorted(comparator).iterator())}, or pass {@link
       * ImmutableList#toImmutableList} to {@code stream.sorted(comparator).collect()}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.3K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/SortedMultiset.java

     * @author Louis Wasserman
     * @since 11.0
     */
    public interface SortedMultiset<E extends @Nullable Object> extends Multiset<E>, SortedIterable<E> {
      Comparator<? super E> comparator();
    
      @Nullable Entry<E> firstEntry();
    
      @Nullable Entry<E> lastEntry();
    
      @Nullable Entry<E> pollFirstEntry();
    
      @Nullable Entry<E> pollLastEntry();
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java

    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.util.Arrays;
    import java.util.Comparator;
    import java.util.Random;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * A benchmark to determine the overhead of sorting with {@link Ordering#from(Comparator)}, or with
     * {@link Ordering#natural()}, as opposed to using the inlined {@link Arrays#sort(Object[])}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ForwardingSortedMultiset.java

        /** Constructor for use by subclasses. */
        public StandardElementSet() {
          super(ForwardingSortedMultiset.this);
        }
      }
    
      @Override
      public Comparator<? super E> comparator() {
        return delegate().comparator();
      }
    
      @Override
      public SortedMultiset<E> descendingMultiset() {
        return delegate().descendingMultiset();
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java

          return notSubtype(shop);
        }
    
        @TestSubtype(suppressGetSubtype = true)
        public Comparator<Electronics> supertypeIsTopLevelClass(
            Mall<Indoor>.Retailer<Electronics> shop) {
          return isSubtype(shop);
        }
    
        @TestSubtype
        public Comparator<Electronics> topLevelClassIsNotSupertypeDueToTypeParameter(
            Mall<Indoor>.Retailer<Grocery> shop) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/SortedSetMultimap.java

       * MultimapBuilder#treeKeys()}, may make additional guarantees.
       */
      @Override
      Map<K, Collection<V>> asMap();
    
      /**
       * Returns the comparator that orders the multimap values, with {@code null} indicating that
       * natural ordering is used.
       */
      @Nullable Comparator<? super V> valueComparator();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top