/external/guava/guava/src/com/google/common/collect/ |
D | TreeMultimap.java | 76 private transient Comparator<? super K> keyComparator; 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 110 super(new TreeMap<K, Collection<V>>(keyComparator)); in TreeMultimap() 111 this.keyComparator = keyComparator; in TreeMultimap() 116 Comparator<? super K> keyComparator, in TreeMultimap() argument 119 this(keyComparator, valueComparator); in TreeMultimap() 143 keyComparator().compare(key, key); in createCollection() 154 public Comparator<? super K> keyComparator() { in keyComparator() method in TreeMultimap [all …]
|
D | ImmutableMultimap.java | 143 @MonotonicNonNull Comparator<? super K> keyComparator; field in ImmutableMultimap.Builder 261 public Builder<K, V> orderKeysBy(Comparator<? super K> keyComparator) { in orderKeysBy() argument 262 this.keyComparator = checkNotNull(keyComparator); in orderKeysBy() 288 if (keyComparator != null) { in build() 289 mapEntries = Ordering.from(keyComparator).<K>onKeys().immutableSortedCopy(mapEntries); in build()
|
D | SortedLists.java | 217 Comparator<? super K> keyComparator, in binarySearch() argument 221 Lists.transform(list, keyFunction), key, keyComparator, presentBehavior, absentBehavior); in binarySearch()
|
D | ImmutableSetMultimap.java | 328 public Builder<K, V> orderKeysBy(Comparator<? super K> keyComparator) { in orderKeysBy() argument 329 super.orderKeysBy(keyComparator); in orderKeysBy() 355 if (keyComparator != null) { in build() 356 mapEntries = Ordering.from(keyComparator).<K>onKeys().immutableSortedCopy(mapEntries); in build()
|
D | ImmutableListMultimap.java | 296 public Builder<K, V> orderKeysBy(Comparator<? super K> keyComparator) { in orderKeysBy() argument 297 super.orderKeysBy(keyComparator); in orderKeysBy()
|
/external/guava/android/guava/src/com/google/common/collect/ |
D | TreeMultimap.java | 76 private transient Comparator<? super K> keyComparator; 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 110 super(new TreeMap<K, Collection<V>>(keyComparator)); in TreeMultimap() 111 this.keyComparator = keyComparator; in TreeMultimap() 116 Comparator<? super K> keyComparator, in TreeMultimap() argument 119 this(keyComparator, valueComparator); in TreeMultimap() 143 keyComparator().compare(key, key); in createCollection() 154 public Comparator<? super K> keyComparator() { in keyComparator() method in TreeMultimap [all …]
|
D | ImmutableMultimap.java | 141 @MonotonicNonNullDecl Comparator<? super K> keyComparator; field in ImmutableMultimap.Builder 259 public Builder<K, V> orderKeysBy(Comparator<? super K> keyComparator) { in orderKeysBy() argument 260 this.keyComparator = checkNotNull(keyComparator); in orderKeysBy() 286 if (keyComparator != null) { in build() 287 mapEntries = Ordering.from(keyComparator).<K>onKeys().immutableSortedCopy(mapEntries); in build()
|
D | SortedLists.java | 217 Comparator<? super K> keyComparator, in binarySearch() argument 221 Lists.transform(list, keyFunction), key, keyComparator, presentBehavior, absentBehavior); in binarySearch()
|
D | ImmutableSetMultimap.java | 224 public Builder<K, V> orderKeysBy(Comparator<? super K> keyComparator) { in orderKeysBy() argument 225 super.orderKeysBy(keyComparator); in orderKeysBy() 251 if (keyComparator != null) { in build() 252 mapEntries = Ordering.from(keyComparator).<K>onKeys().immutableSortedCopy(mapEntries); in build()
|
D | ImmutableListMultimap.java | 199 public Builder<K, V> orderKeysBy(Comparator<? super K> keyComparator) { in orderKeysBy() argument 200 super.orderKeysBy(keyComparator); in orderKeysBy()
|
/external/guava/guava-gwt/src/com/google/common/collect/ |
D | TreeMultimap_CustomFieldSerializer.java | 36 Comparator<Object> keyComparator = (Comparator<Object>) in.readObject(); in instantiate() local 41 in, TreeMultimap.create(keyComparator, valueComparator)); in instantiate() 46 out.writeObject(multimap.keyComparator()); in serialize()
|
D | GwtSerializationDependencies.java | 125 Comparator<? super K> keyComparator; field in GwtSerializationDependencies.TreeMultimapDependencies
|
/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | TreeMultimapExplicitTest.java | 100 assertEquals(Ordering.natural(), copy.keyComparator()); in testMultimapCreateFromTreeMultimap() 117 assertEquals(StringLength.COMPARATOR, multimap.keyComparator()); in testGetComparator() 183 assertEquals(StringLength.COMPARATOR, copy.keyComparator()); in testMultimapComparators() 205 assertEquals(multimap.keyComparator(), copy.keyComparator()); in testExplicitComparatorSerialization()
|
D | TreeMultimapNaturalTest.java | 369 assertSame(Ordering.natural(), copyFromTree.keyComparator()); in testCreateFromTreeMultimap() 384 assertEquals(Ordering.natural(), copyFromHash.keyComparator()); in testCreateFromHashMultimap() 399 assertSame(Ordering.natural(), copyFromSorted.keyComparator()); in testCreateFromSortedSetMultimap() 406 assertEquals(Ordering.natural(), multimap.keyComparator()); in testComparators() 416 assertEquals(multimap.keyComparator(), copy.keyComparator()); in testExplicitComparatorSerialization() 441 assertEquals(Ordering.natural(), multimap.keyComparator()); in testTreeMultimapDerived() 467 assertEquals(Ordering.natural(), multimap.keyComparator()); in testTreeMultimapNonGeneric()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | TreeMultimapExplicitTest.java | 100 assertEquals(Ordering.natural(), copy.keyComparator()); in testMultimapCreateFromTreeMultimap() 117 assertEquals(StringLength.COMPARATOR, multimap.keyComparator()); in testGetComparator() 183 assertEquals(StringLength.COMPARATOR, copy.keyComparator()); in testMultimapComparators() 205 assertEquals(multimap.keyComparator(), copy.keyComparator()); in testExplicitComparatorSerialization()
|
D | TreeMultimapNaturalTest.java | 369 assertSame(Ordering.natural(), copyFromTree.keyComparator()); in testCreateFromTreeMultimap() 384 assertEquals(Ordering.natural(), copyFromHash.keyComparator()); in testCreateFromHashMultimap() 399 assertSame(Ordering.natural(), copyFromSorted.keyComparator()); in testCreateFromSortedSetMultimap() 406 assertEquals(Ordering.natural(), multimap.keyComparator()); in testComparators() 416 assertEquals(multimap.keyComparator(), copy.keyComparator()); in testExplicitComparatorSerialization() 441 assertEquals(Ordering.natural(), multimap.keyComparator()); in testTreeMultimapDerived() 467 assertEquals(Ordering.natural(), multimap.keyComparator()); in testTreeMultimapNonGeneric()
|
/external/icu/icu4c/source/common/ |
D | uhash.cpp | 262 result->keyComparator = keyComp; in _uhash_init() 349 if ((*hash->keyComparator)(key, elements[theIndex].key)) { in _uhash_find() 619 UKeyComparator *result = hash->keyComparator; in uhash_setKeyComparator() 620 hash->keyComparator = fn; in uhash_setKeyComparator() 889 hash1->keyComparator != hash2->keyComparator || in uhash_equals()
|
D | uhash.h | 147 UKeyComparator *keyComparator; /* Compares keys for equality. member
|
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/ |
D | Helpers.java | 255 final Comparator<? super K> keyComparator) { 260 return (keyComparator == null) 262 : keyComparator.compare(a.getKey(), b.getKey());
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | Helpers.java | 255 final Comparator<? super K> keyComparator) { 260 return (keyComparator == null) 262 : keyComparator.compare(a.getKey(), b.getKey());
|