- Sort Score
- Num 10 results
- Language All
Results 161 - 170 of 261 for comparators (0.09 seconds)
-
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: Mon Nov 17 22:50:48 GMT 2025 - 48.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/graph/MapCacheTest.java
package com.google.common.graph; import static com.google.common.truth.Truth.assertThat; import com.google.common.collect.Ordering; import java.util.Arrays; import java.util.Collection; import java.util.Comparator; import java.util.HashMap; import java.util.TreeMap; import org.jspecify.annotations.NullUnmarked; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.2K bytes - Click Count (0) -
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 covariantCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 30.6K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/UnsignedLongs.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(long[], * long[])}. * * <p><b>Java 9+ users:</b> Use {@link Arrays#compareUnsigned(long[], long[]) * Arrays::compareUnsigned}. */ public static Comparator<long[]> lexicographicalComparator() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jan 05 22:13:21 GMT 2026 - 17.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java
new int[] {GREATEST, (GREATEST - (int) 1L)}, new int[] {GREATEST, GREATEST}, new int[] {GREATEST, GREATEST, GREATEST}); Comparator<int[]> comparator = UnsignedInts.lexicographicalComparator(); Helpers.testComparator(comparator, ordered); } public void testSort() { testSort(new int[] {}, new int[] {}); testSort(new int[] {2}, new int[] {2});
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 12.5K bytes - Click Count (0) -
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});
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 12.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableMultimap.java
* created multimaps. * * @since 2.0 */ @DoNotMock public static class Builder<K, V> { @Nullable Map<K, ImmutableCollection.Builder<V>> builderMap; @Nullable Comparator<? super K> keyComparator; @Nullable Comparator<? super V> valueComparator; int expectedValuesPerKey = ImmutableCollection.Builder.DEFAULT_INITIAL_CAPACITY; /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 28.1K bytes - Click Count (0) -
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);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Dec 09 15:58:48 GMT 2025 - 19.3K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapGetTester.java
public class SortedSetMultimapGetTester<K, V> extends AbstractMultimapTester<K, V, SortedSetMultimap<K, V>> { public void testValueComparator() { assertEquals(multimap().valueComparator(), multimap().get(k0()).comparator()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 1.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ForwardingNavigableMap.java
* invoke methods, they invoke methods on the {@code ForwardingNavigableMap}. * * <p>Each of the {@code standard} methods uses the map'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 Map} * contract. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 14.1K bytes - Click Count (0)