Home
last modified time | relevance | path

Searched refs:valueComparator (Results 1 – 25 of 42) sorted by relevance

12

/external/guava/guava/src/com/google/common/collect/
DTreeMultimap.java77 private transient Comparator<? super V> valueComparator; field in TreeMultimap
94 Comparator<? super K> keyComparator, Comparator<? super V> valueComparator) { in create() argument
95 return new TreeMultimap<>(checkNotNull(keyComparator), checkNotNull(valueComparator)); in create()
109 TreeMultimap(Comparator<? super K> keyComparator, Comparator<? super V> valueComparator) { in TreeMultimap() argument
112 this.valueComparator = valueComparator; in TreeMultimap()
117 Comparator<? super V> valueComparator, in TreeMultimap() argument
119 this(keyComparator, valueComparator); in TreeMultimap()
137 return new TreeSet<V>(valueComparator); in createCollection()
159 public Comparator<? super V> valueComparator() { in valueComparator() method in TreeMultimap
160 return valueComparator; in valueComparator()
[all …]
DImmutableSetMultimap.java346 public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) { in orderValuesBy() argument
347 super.orderValuesBy(valueComparator); in orderValuesBy()
358 return fromMapEntries(mapEntries, valueComparator); in build()
380 Multimap<? extends K, ? extends V> multimap, Comparator<? super V> valueComparator) { in copyOf() argument
382 if (multimap.isEmpty() && valueComparator == null) { in copyOf()
394 return fromMapEntries(multimap.asMap().entrySet(), valueComparator); in copyOf()
415 @Nullable Comparator<? super V> valueComparator) { in fromMapEntries() argument
426 ImmutableSet<V> set = valueSet(valueComparator, values); in fromMapEntries()
433 return new ImmutableSetMultimap<>(builder.build(), size, valueComparator); in fromMapEntries()
445 @Nullable Comparator<? super V> valueComparator) { in ImmutableSetMultimap() argument
[all …]
DComparators.java177 public static <T> Comparator<Optional<T>> emptiesFirst(Comparator<? super T> valueComparator) { in emptiesFirst() argument
178 checkNotNull(valueComparator); in emptiesFirst()
179 return Comparator.comparing(o -> o.orElse(null), Comparator.nullsFirst(valueComparator)); in emptiesFirst()
190 public static <T> Comparator<Optional<T>> emptiesLast(Comparator<? super T> valueComparator) { in emptiesLast() argument
191 checkNotNull(valueComparator); in emptiesLast()
192 return Comparator.comparing(o -> o.orElse(null), Comparator.nullsLast(valueComparator)); in emptiesLast()
DImmutableBiMap.java246 public Builder<K, V> orderEntriesByValue(Comparator<? super V> valueComparator) { in orderEntriesByValue() argument
247 super.orderEntriesByValue(valueComparator); in orderEntriesByValue()
280 if (valueComparator != null) { in build()
288 Ordering.from(valueComparator).onResultOf(Maps.<V>valueFunction())); in build()
299 valueComparator == null, in buildJdkBacked()
DForwardingSortedSetMultimap.java62 public Comparator<? super V> valueComparator() { in valueComparator() method in ForwardingSortedSetMultimap
63 return delegate().valueComparator(); in valueComparator()
DImmutableMap.java250 @Nullable Comparator<? super V> valueComparator; field in ImmutableMap.Builder
345 public Builder<K, V> orderEntriesByValue(Comparator<? super V> valueComparator) { in orderEntriesByValue() argument
346 checkState(this.valueComparator == null, "valueComparator was already set"); in orderEntriesByValue()
347 this.valueComparator = checkNotNull(valueComparator, "valueComparator"); in orderEntriesByValue()
380 if (valueComparator != null) { in build()
385 entries, 0, size, Ordering.from(valueComparator).onResultOf(Maps.<V>valueFunction())); in build()
401 valueComparator == null, "buildJdkBacked is only for testing; can't use valueComparator"); in buildJdkBacked()
DImmutableListMultimap.java309 public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) { in orderValuesBy() argument
310 super.orderValuesBy(valueComparator); in orderValuesBy()
367 @Nullable Comparator<? super V> valueComparator) { in fromMapEntries() argument
379 (valueComparator == null) in fromMapEntries()
381 : ImmutableList.sortedCopyOf(valueComparator, values); in fromMapEntries()
DImmutableMultimap.java145 @Nullable Comparator<? super V> valueComparator; field in ImmutableMultimap.Builder
273 public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) { in orderValuesBy() argument
274 this.valueComparator = checkNotNull(valueComparator); in orderValuesBy()
292 return ImmutableListMultimap.fromMapEntries(mapEntries, valueComparator); in build()
/external/guava/android/guava/src/com/google/common/collect/
DTreeMultimap.java77 private transient Comparator<? super V> valueComparator; field in TreeMultimap
94 Comparator<? super K> keyComparator, Comparator<? super V> valueComparator) { in create() argument
95 return new TreeMultimap<>(checkNotNull(keyComparator), checkNotNull(valueComparator)); in create()
109 TreeMultimap(Comparator<? super K> keyComparator, Comparator<? super V> valueComparator) { in TreeMultimap() argument
112 this.valueComparator = valueComparator; in TreeMultimap()
117 Comparator<? super V> valueComparator, in TreeMultimap() argument
119 this(keyComparator, valueComparator); in TreeMultimap()
137 return new TreeSet<V>(valueComparator); in createCollection()
159 public Comparator<? super V> valueComparator() { in valueComparator() method in TreeMultimap
160 return valueComparator; in valueComparator()
[all …]
DImmutableSetMultimap.java241 public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) { in orderValuesBy() argument
242 super.orderValuesBy(valueComparator); in orderValuesBy()
253 return fromMapEntries(mapEntries, valueComparator); in build()
275 Multimap<? extends K, ? extends V> multimap, Comparator<? super V> valueComparator) { in copyOf() argument
277 if (multimap.isEmpty() && valueComparator == null) { in copyOf()
289 return fromMapEntries(multimap.asMap().entrySet(), valueComparator); in copyOf()
310 @NullableDecl Comparator<? super V> valueComparator) { in fromMapEntries() argument
321 ImmutableSet<V> set = valueSet(valueComparator, values); in fromMapEntries()
328 return new ImmutableSetMultimap<>(builder.build(), size, valueComparator); in fromMapEntries()
340 @NullableDecl Comparator<? super V> valueComparator) { in ImmutableSetMultimap() argument
[all …]
DForwardingSortedSetMultimap.java62 public Comparator<? super V> valueComparator() { in valueComparator() method in ForwardingSortedSetMultimap
63 return delegate().valueComparator(); in valueComparator()
DImmutableListMultimap.java211 public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) { in orderValuesBy() argument
212 super.orderValuesBy(valueComparator); in orderValuesBy()
269 @NullableDecl Comparator<? super V> valueComparator) { in fromMapEntries() argument
281 (valueComparator == null) in fromMapEntries()
283 : ImmutableList.sortedCopyOf(valueComparator, values); in fromMapEntries()
DImmutableMap.java214 @NullableDecl Comparator<? super V> valueComparator; field in ImmutableMap.Builder
312 public Builder<K, V> orderEntriesByValue(Comparator<? super V> valueComparator) { in orderEntriesByValue() argument
313 checkState(this.valueComparator == null, "valueComparator was already set"); in orderEntriesByValue()
314 this.valueComparator = checkNotNull(valueComparator, "valueComparator"); in orderEntriesByValue()
345 if (valueComparator != null) { in sortEntries()
356 entries, 0, size, Ordering.from(valueComparator).onResultOf(Maps.<V>valueFunction())); in sortEntries()
DImmutableMultimap.java143 @NullableDecl Comparator<? super V> valueComparator; field in ImmutableMultimap.Builder
271 public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) { in orderValuesBy() argument
272 this.valueComparator = checkNotNull(valueComparator); in orderValuesBy()
290 return ImmutableListMultimap.fromMapEntries(mapEntries, valueComparator); in build()
/external/dagger2/java/dagger/internal/codegen/extension/
DOptionals.java37 public static <T> Comparator<Optional<T>> emptiesLast(Comparator<? super T> valueComparator) { in emptiesLast() argument
38 checkNotNull(valueComparator); in emptiesLast()
39 return Comparator.comparing(o -> o.orElse(null), Comparator.nullsLast(valueComparator)); in emptiesLast()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DSortedSetMultimapAsMapTester.java42 assertEquals(multimap().valueComparator(), valueSet.comparator()); in testAsMapValuesImplementSortedSet()
49 assertEquals(multimap().valueComparator(), valueSet.comparator()); in testAsMapGetImplementsSortedSet()
59 assertEquals(multimap().valueComparator(), valueSet.comparator()); in testAsMapRemoveImplementsSortedSet()
DSortedSetMultimapGetTester.java33 assertEquals(multimap().valueComparator(), multimap().get(k0()).comparator()); in testValueComparator()
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/
DSortedSetMultimapAsMapTester.java42 assertEquals(multimap().valueComparator(), valueSet.comparator()); in testAsMapValuesImplementSortedSet()
49 assertEquals(multimap().valueComparator(), valueSet.comparator()); in testAsMapGetImplementsSortedSet()
59 assertEquals(multimap().valueComparator(), valueSet.comparator()); in testAsMapRemoveImplementsSortedSet()
DSortedSetMultimapGetTester.java33 assertEquals(multimap().valueComparator(), multimap().get(k0()).comparator()); in testValueComparator()
/external/guava/android/guava-tests/test/com/google/common/collect/
DTreeMultimapExplicitTest.java101 assertEquals(Ordering.natural(), copy.valueComparator()); in testMultimapCreateFromTreeMultimap()
118 assertEquals(DECREASING_INT_COMPARATOR, multimap.valueComparator()); in testGetComparator()
184 assertEquals(DECREASING_INT_COMPARATOR, copy.valueComparator()); in testMultimapComparators()
206 assertEquals(multimap.valueComparator(), copy.valueComparator()); in testExplicitComparatorSerialization()
DTreeMultimapNaturalTest.java370 assertSame(Ordering.natural(), copyFromTree.valueComparator()); in testCreateFromTreeMultimap()
385 assertEquals(Ordering.natural(), copyFromHash.valueComparator()); in testCreateFromHashMultimap()
400 assertSame(Ordering.natural(), copyFromSorted.valueComparator()); in testCreateFromSortedSetMultimap()
407 assertEquals(Ordering.natural(), multimap.valueComparator()); in testComparators()
417 assertEquals(multimap.valueComparator(), copy.valueComparator()); in testExplicitComparatorSerialization()
442 assertEquals(Ordering.natural(), multimap.valueComparator()); in testTreeMultimapDerived()
468 assertEquals(Ordering.natural(), multimap.valueComparator()); in testTreeMultimapNonGeneric()
/external/guava/guava-tests/test/com/google/common/collect/
DTreeMultimapExplicitTest.java101 assertEquals(Ordering.natural(), copy.valueComparator()); in testMultimapCreateFromTreeMultimap()
118 assertEquals(DECREASING_INT_COMPARATOR, multimap.valueComparator()); in testGetComparator()
184 assertEquals(DECREASING_INT_COMPARATOR, copy.valueComparator()); in testMultimapComparators()
206 assertEquals(multimap.valueComparator(), copy.valueComparator()); in testExplicitComparatorSerialization()
DTreeMultimapNaturalTest.java370 assertSame(Ordering.natural(), copyFromTree.valueComparator()); in testCreateFromTreeMultimap()
385 assertEquals(Ordering.natural(), copyFromHash.valueComparator()); in testCreateFromHashMultimap()
400 assertSame(Ordering.natural(), copyFromSorted.valueComparator()); in testCreateFromSortedSetMultimap()
407 assertEquals(Ordering.natural(), multimap.valueComparator()); in testComparators()
417 assertEquals(multimap.valueComparator(), copy.valueComparator()); in testExplicitComparatorSerialization()
442 assertEquals(Ordering.natural(), multimap.valueComparator()); in testTreeMultimapDerived()
468 assertEquals(Ordering.natural(), multimap.valueComparator()); in testTreeMultimapNonGeneric()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableMap.java137 Comparator<? super V> valueComparator;
176 public Builder<K, V> orderEntriesByValue(Comparator<? super V> valueComparator) {
177 checkState(this.valueComparator == null, "valueComparator was already set");
178 this.valueComparator = checkNotNull(valueComparator, "valueComparator");
189 if (valueComparator != null) {
191 entries, Ordering.from(valueComparator).onResultOf(Maps.<V>valueFunction()));
/external/icu/icu4c/source/common/
Duhash.cpp263 result->valueComparator = valueComp; in _uhash_init()
625 UValueComparator *result = hash->valueComparator; in uhash_setValueComparator()
626 hash->valueComparator = fn; in uhash_setValueComparator()
890 hash1->valueComparator != hash2->valueComparator || in uhash_equals()
891 hash1->valueComparator == NULL) in uhash_equals()
917 if(hash1->valueComparator(val1, val2)==FALSE){ in uhash_equals()

12