Home
last modified time | relevance | path

Searched refs:keyComparator (Results 1 – 20 of 20) sorted by relevance

/external/guava/guava/src/com/google/common/collect/
DTreeMultimap.java76 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 …]
DImmutableMultimap.java143 @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()
DSortedLists.java217 Comparator<? super K> keyComparator, in binarySearch() argument
221 Lists.transform(list, keyFunction), key, keyComparator, presentBehavior, absentBehavior); in binarySearch()
DImmutableSetMultimap.java328 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()
DImmutableListMultimap.java296 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/
DTreeMultimap.java76 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 …]
DImmutableMultimap.java141 @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()
DSortedLists.java217 Comparator<? super K> keyComparator, in binarySearch() argument
221 Lists.transform(list, keyFunction), key, keyComparator, presentBehavior, absentBehavior); in binarySearch()
DImmutableSetMultimap.java224 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()
DImmutableListMultimap.java199 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/
DTreeMultimap_CustomFieldSerializer.java36 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()
DGwtSerializationDependencies.java125 Comparator<? super K> keyComparator; field in GwtSerializationDependencies.TreeMultimapDependencies
/external/guava/android/guava-tests/test/com/google/common/collect/
DTreeMultimapExplicitTest.java100 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()
DTreeMultimapNaturalTest.java369 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/
DTreeMultimapExplicitTest.java100 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()
DTreeMultimapNaturalTest.java369 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/
Duhash.cpp262 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()
Duhash.h147 UKeyComparator *keyComparator; /* Compares keys for equality. member
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/
DHelpers.java255 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/
DHelpers.java255 final Comparator<? super K> keyComparator) {
260 return (keyComparator == null)
262 : keyComparator.compare(a.getKey(), b.getKey());