- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 165 for comparators (0.65 sec)
-
guava/src/com/google/common/collect/Comparators.java
Comparator<T> comparator) { return new LexicographicalOrdering<S>(checkNotNull(comparator)); } /** * Returns {@code true} if each element in {@code iterable} after the first is greater than or * equal to the element that preceded it, according to the specified comparator. Note that this is * always true when the iterable has fewer than two elements. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 10.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ComparatorsTest.java
import static com.google.common.collect.Comparators.emptiesFirst; import static com.google.common.collect.Comparators.emptiesLast; import static com.google.common.collect.Comparators.isInOrder; import static com.google.common.collect.Comparators.isInStrictOrder; import static com.google.common.collect.Comparators.max; import static com.google.common.collect.Comparators.min;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Apr 12 15:07:59 UTC 2025 - 6.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompoundOrdering.java
this.comparators = (Comparator<? super T>[]) new Comparator<?>[] {primary, secondary}; } @SuppressWarnings("unchecked") // Generic array creation CompoundOrdering(Iterable<? extends Comparator<? super T>> comparators) { this.comparators = Iterables.toArray(comparators, (Comparator<? super T>[]) new Comparator<?>[0]); } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jun 04 13:03:16 UTC 2025 - 2.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TreeBasedTable.java
private final Comparator<? super C> columnComparator; private static final class Factory<C, V> implements Supplier<Map<C, V>>, Serializable { final Comparator<? super C> comparator; Factory(Comparator<? super C> comparator) { this.comparator = comparator; } @Override public Map<C, V> get() { return new TreeMap<>(comparator); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 18 15:05:43 UTC 2025 - 11.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java
private static final Comparator<@Nullable Integer> DECREASING_INT_COMPARATOR = Ordering.<Integer>natural().reverse().<Integer>nullsFirst(); private SetMultimap<String, Integer> create() { return TreeMultimap.create(StringLength.COMPARATOR, DECREASING_INT_COMPARATOR); } /** Create and populate a {@code TreeMultimap} with explicit comparators. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/TreeBasedTable.java
private final Comparator<? super C> columnComparator; private static final class Factory<C, V> implements Supplier<Map<C, V>>, Serializable { final Comparator<? super C> comparator; Factory(Comparator<? super C> comparator) { this.comparator = comparator; } @Override public Map<C, V> get() { return new TreeMap<>(comparator); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 18 15:05:43 UTC 2025 - 11.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/package-info.java
* <li>{@link RangeSet} * <li>{@link DiscreteDomain} * <li>{@link ContiguousSet} * </ul> * * <h2>Classes of static utility methods</h2> * * <ul> * <li>{@link Collections2} * <li>{@link Comparators} * <li>{@link Iterables} * <li>{@link Iterators} * <li>{@link Lists} * <li>{@link Maps} * <li>{@link MoreCollectors} * <li>{@link Multimaps} * <li>{@link Multisets}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 5K bytes - Viewed (0) -
guava/src/com/google/common/collect/package-info.java
* <li>{@link RangeSet} * <li>{@link DiscreteDomain} * <li>{@link ContiguousSet} * </ul> * * <h2>Classes of static utility methods</h2> * * <ul> * <li>{@link Collections2} * <li>{@link Comparators} * <li>{@link Iterables} * <li>{@link Iterators} * <li>{@link Lists} * <li>{@link Maps} * <li>{@link MoreCollectors} * <li>{@link Multimaps} * <li>{@link Multisets}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 5K bytes - Viewed (0) -
guava/src/com/google/common/collect/TopKSelector.java
* bufferSize ≥ k, then we can ignore any elements greater than this value. */ private @Nullable T threshold; @SuppressWarnings("unchecked") // TODO(cpovirk): Consider storing Object[] instead of T[]. private TopKSelector(Comparator<? super T> comparator, int k) { this.comparator = checkNotNull(comparator, "comparator"); this.k = k; checkArgument(k >= 0, "k (%s) must be >= 0", k);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 31 13:15:26 UTC 2025 - 11.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableTable.java
* * @since 11.0 */ @DoNotMock public static final class Builder<R, C, V> { private final List<Cell<R, C, V>> cells = new ArrayList<>(); private @Nullable Comparator<? super R> rowComparator; private @Nullable Comparator<? super C> columnComparator; /** * Creates a new builder. The returned builder is equivalent to the builder generated by {@link * ImmutableTable#builder}. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 17.3K bytes - Viewed (0)