- Sort Score
- Num 10 results
- Language All
Results 131 - 140 of 261 for comparators (0.06 seconds)
-
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(); } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 8.6K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 21.4K bytes - Click Count (0) -
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[])}Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.6K bytes - Click Count (0) -
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. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 8.8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/StandardRowSortedTable.java
} @Override SortedSet<R> createKeySet() { return new Maps.SortedKeySet<>(this); } @Override public @Nullable Comparator<? super R> comparator() { return sortedBackingMap().comparator(); } @Override public R firstKey() { return sortedBackingMap().firstKey(); } @Override public R lastKey() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Jul 18 15:05:43 GMT 2025 - 4.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Sets.java
return standardTailSet(fromElement); } @SuppressWarnings("unchecked") @Override public Comparator<? super E> comparator() { Comparator<? super E> forwardComparator = forward.comparator(); if (forwardComparator == null) { return (Comparator) Ordering.natural().reverse(); } else { return reverse(forwardComparator); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 81.4K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java
map.put(entry.getKey(), entry.getValue()); } return map; } static <T> Comparator<T> arbitraryNullFriendlyComparator() { return new NullFriendlyComparator<>(); } private static final class NullFriendlyComparator<T> implements Comparator<T>, Serializable { @Override public int compare(T left, T right) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Dec 16 03:23:31 GMT 2025 - 21.8K bytes - Click Count (0) -
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> pass {@link ImmutableList#toImmutableList} to {@code * stream.sorted(comparator).collect()}. * * @param comparator the function by which to sort list elementsCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 34.7K bytes - Click Count (0) -
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> pass {@link ImmutableList#toImmutableList} to {@code * stream.sorted(comparator).collect()}. * * @param comparator the function by which to sort list elementsCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 34.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableSetMultimap.java
* empty or a partial view? * * Related: Should methods that do accept a comparator (like fromMapEntries, or like this one if * we were to choose to *preserve* an input comparator) return not the generic empty of() * instance but instead an empty ImmutableSetMultimap instance with the requested * valueComparator, since the comparator is visible when users call `get` on a key that's not * present? */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 19 22:57:35 GMT 2026 - 26.3K bytes - Click Count (0)