/external/guava/guava/src/com/google/common/collect/ |
D | TreeMultimap.java | 77 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 …]
|
D | ImmutableSetMultimap.java | 346 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 …]
|
D | Comparators.java | 177 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()
|
D | ImmutableBiMap.java | 246 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()
|
D | ForwardingSortedSetMultimap.java | 62 public Comparator<? super V> valueComparator() { in valueComparator() method in ForwardingSortedSetMultimap 63 return delegate().valueComparator(); in valueComparator()
|
D | ImmutableMap.java | 250 @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()
|
D | ImmutableListMultimap.java | 309 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()
|
D | ImmutableMultimap.java | 145 @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/ |
D | TreeMultimap.java | 77 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 …]
|
D | ImmutableSetMultimap.java | 241 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 …]
|
D | ForwardingSortedSetMultimap.java | 62 public Comparator<? super V> valueComparator() { in valueComparator() method in ForwardingSortedSetMultimap 63 return delegate().valueComparator(); in valueComparator()
|
D | ImmutableListMultimap.java | 211 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()
|
D | ImmutableMap.java | 214 @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()
|
D | ImmutableMultimap.java | 143 @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/ |
D | Optionals.java | 37 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/ |
D | SortedSetMultimapAsMapTester.java | 42 assertEquals(multimap().valueComparator(), valueSet.comparator()); in testAsMapValuesImplementSortedSet() 49 assertEquals(multimap().valueComparator(), valueSet.comparator()); in testAsMapGetImplementsSortedSet() 59 assertEquals(multimap().valueComparator(), valueSet.comparator()); in testAsMapRemoveImplementsSortedSet()
|
D | SortedSetMultimapGetTester.java | 33 assertEquals(multimap().valueComparator(), multimap().get(k0()).comparator()); in testValueComparator()
|
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/ |
D | SortedSetMultimapAsMapTester.java | 42 assertEquals(multimap().valueComparator(), valueSet.comparator()); in testAsMapValuesImplementSortedSet() 49 assertEquals(multimap().valueComparator(), valueSet.comparator()); in testAsMapGetImplementsSortedSet() 59 assertEquals(multimap().valueComparator(), valueSet.comparator()); in testAsMapRemoveImplementsSortedSet()
|
D | SortedSetMultimapGetTester.java | 33 assertEquals(multimap().valueComparator(), multimap().get(k0()).comparator()); in testValueComparator()
|
/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | TreeMultimapExplicitTest.java | 101 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()
|
D | TreeMultimapNaturalTest.java | 370 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/ |
D | TreeMultimapExplicitTest.java | 101 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()
|
D | TreeMultimapNaturalTest.java | 370 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/ |
D | ImmutableMap.java | 137 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/ |
D | uhash.cpp | 263 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()
|