- Sort Score
- Num 10 results
- Language All
Results 141 - 150 of 261 for comparators (0.08 seconds)
-
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();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 5.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/CollectSpliterators.java
} static <T extends @Nullable Object> Spliterator<T> indexed( int size, int extraCharacteristics, IntFunction<T> function, @Nullable Comparator<? super T> comparator) { if (comparator != null) { checkArgument((extraCharacteristics & Spliterator.SORTED) != 0); } final class WithCharacteristics implements Spliterator<T> { private final Spliterator.OfInt delegate;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 19.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Range.java
checkNotNull(values); if (values instanceof SortedSet) { SortedSet<C> set = (SortedSet<C>) values; Comparator<?> comparator = set.comparator(); if (Ordering.<C>natural().equals(comparator) || comparator == null) { return closed(set.first(), set.last()); } } Iterator<C> valueIterator = values.iterator();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 28K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java
Collections.addAll(tmp, elements); return tmp.toArray(new String[0]); } 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: Wed Feb 19 21:24:11 GMT 2025 - 19.8K bytes - Click Count (0) -
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) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 20.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/CharsTest.java
new char[] {GREATEST, GREATEST, GREATEST}); Comparator<char[]> comparator = Chars.lexicographicalComparator(); Helpers.testComparator(comparator, ordered); } @J2ktIncompatible @GwtIncompatible // SerializableTester public void testLexicographicalComparatorSerializable() { Comparator<char[]> comparator = Chars.lexicographicalComparator();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 01:43:32 GMT 2026 - 26K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java
} public static <E> ImmutableList<E> sortedCopyOf( Comparator<? super E> comparator, Iterable<? extends E> elements) { checkNotNull(comparator); @SuppressWarnings("unchecked") // all supported methods are covariant E[] array = (E[]) Iterables.toArray(elements); checkElementsNotNull(array); Arrays.sort(array, comparator); return asImmutableList(array); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 18:32:41 GMT 2025 - 11.1K bytes - Click Count (0) -
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});
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) -
android/guava/src/com/google/common/collect/CollectSpliterators.java
} static <T extends @Nullable Object> Spliterator<T> indexed( int size, int extraCharacteristics, IntFunction<T> function, @Nullable Comparator<? super T> comparator) { if (comparator != null) { checkArgument((extraCharacteristics & Spliterator.SORTED) != 0); } /* * @IgnoreJRERequirement should be redundant with the one on Streams itself, but it's necessary
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 20.5K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapAsMapTester.java
assertEquals(multimap().valueComparator(), valueSet.comparator()); } } public void testAsMapGetImplementsSortedSet() { for (K key : multimap().keySet()) { SortedSet<V> valueSet = (SortedSet<V>) multimap().asMap().get(key); assertEquals(multimap().valueComparator(), valueSet.comparator()); } } @MapFeature.Require(SUPPORTS_REMOVE)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 2.4K bytes - Click Count (0)