Home
last modified time | relevance | path

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

/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DTreeMultimap.java74 private transient Comparator<? super K> keyComparator; field in TreeMultimap
95 Comparator<? super K> keyComparator, in create() argument
97 return new TreeMultimap<K, V>(checkNotNull(keyComparator), in create()
113 TreeMultimap(Comparator<? super K> keyComparator, in TreeMultimap() argument
115 super(new TreeMap<K, Collection<V>>(keyComparator)); in TreeMultimap()
116 this.keyComparator = keyComparator; in TreeMultimap()
120 private TreeMultimap(Comparator<? super K> keyComparator, in TreeMultimap() argument
123 this(keyComparator, valueComparator); in TreeMultimap()
142 keyComparator().compare(key, key); in createCollection()
150 public Comparator<? super K> keyComparator() { in keyComparator() method in TreeMultimap
[all …]
DImmutableMultimap.java155 Comparator<? super K> keyComparator; field in ImmutableMultimap.Builder
234 public Builder<K, V> orderKeysBy(Comparator<? super K> keyComparator) { in orderKeysBy() argument
235 this.keyComparator = checkNotNull(keyComparator); in orderKeysBy()
259 if (keyComparator != null) { in build()
265 Ordering.from(keyComparator).<K>onKeys()); in build()
DImmutableSetMultimap.java234 public Builder<K, V> orderKeysBy(Comparator<? super K> keyComparator) { in orderKeysBy() argument
235 this.keyComparator = checkNotNull(keyComparator); in orderKeysBy()
261 if (keyComparator != null) { in build()
267 Ordering.from(keyComparator).<K>onKeys()); 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/src/com/google/common/collect/
DTreeMultimap.java80 private transient Comparator<? super K> keyComparator; field in TreeMultimap
101 Comparator<? super K> keyComparator, in create() argument
103 return new TreeMultimap<K, V>(checkNotNull(keyComparator), in create()
119 TreeMultimap(Comparator<? super K> keyComparator, in TreeMultimap() argument
121 super(new TreeMap<K, Collection<V>>(keyComparator)); in TreeMultimap()
122 this.keyComparator = keyComparator; in TreeMultimap()
126 private TreeMultimap(Comparator<? super K> keyComparator, in TreeMultimap() argument
129 this(keyComparator, valueComparator); in TreeMultimap()
148 keyComparator().compare(key, key); in createCollection()
156 public Comparator<? super K> keyComparator() { in keyComparator() method in TreeMultimap
[all …]
DImmutableMultimap.java156 Comparator<? super K> keyComparator; field in ImmutableMultimap.Builder
235 public Builder<K, V> orderKeysBy(Comparator<? super K> keyComparator) { in orderKeysBy() argument
236 this.keyComparator = checkNotNull(keyComparator); in orderKeysBy()
260 if (keyComparator != null) { in build()
266 Ordering.from(keyComparator).<K>onKeys()); in build()
DImmutableSetMultimap.java240 public Builder<K, V> orderKeysBy(Comparator<? super K> keyComparator) { in orderKeysBy() argument
241 this.keyComparator = checkNotNull(keyComparator); in orderKeysBy()
267 if (keyComparator != null) { in build()
273 Ordering.from(keyComparator).<K>onKeys()); in build()
DSortedLists.java225 Comparator<? super K> keyComparator, in binarySearch() argument
229 Lists.transform(list, keyFunction), key, keyComparator, presentBehavior, absentBehavior); in binarySearch()
DImmutableListMultimap.java204 public Builder<K, V> orderKeysBy(Comparator<? super K> keyComparator) { in orderKeysBy() argument
205 super.orderKeysBy(keyComparator); in orderKeysBy()
/external/guava/guava-gwt/src/com/google/common/collect/
DTreeMultimap_CustomFieldSerializer.java39 Comparator<Object> keyComparator = (Comparator<Object>) in.readObject(); in instantiate() local
44 in, TreeMultimap.create(keyComparator, valueComparator)); in instantiate()
49 out.writeObject(multimap.keyComparator()); in serialize()
DGwtSerializationDependencies.java136 Comparator<? super K> keyComparator; field in GwtSerializationDependencies.TreeMultimapDependencies
/external/guava/guava-tests/test/com/google/common/collect/
DTreeMultimapExplicitTest.java109 assertEquals(Ordering.natural(), copy.keyComparator()); in testMultimapCreateFromTreeMultimap()
127 assertEquals(StringLength.COMPARATOR, multimap.keyComparator()); in testGetComparator()
193 assertEquals(StringLength.COMPARATOR, copy.keyComparator()); in testMultimapComparators()
216 assertEquals(multimap.keyComparator(), copy.keyComparator()); in testExplicitComparatorSerialization()
DTreeMultimapNaturalTest.java356 assertSame(Ordering.natural(), copyFromTree.keyComparator()); in testCreateFromTreeMultimap()
374 assertEquals(Ordering.natural(), copyFromHash.keyComparator()); in testCreateFromHashMultimap()
392 assertSame(Ordering.natural(), copyFromSorted.keyComparator()); in testCreateFromSortedSetMultimap()
399 assertEquals(Ordering.natural(), multimap.keyComparator()); in testComparators()
410 assertEquals(multimap.keyComparator(), copy.keyComparator()); in testExplicitComparatorSerialization()
429 assertEquals(Ordering.natural(), multimap.keyComparator()); in testTreeMultimapDerived()
453 assertEquals(Ordering.natural(), multimap.keyComparator()); in testTreeMultimapNonGeneric()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DTreeMultimapNaturalTest.java141 assertSame(Ordering.natural(), copyFromTree.keyComparator()); in testCreateFromTreeMultimap()
159 assertEquals(Ordering.natural(), copyFromHash.keyComparator()); in testCreateFromHashMultimap()
177 assertSame(Ordering.natural(), copyFromSorted.keyComparator()); in testCreateFromSortedSetMultimap()
184 assertEquals(Ordering.natural(), multimap.keyComparator()); in testComparators()
DTreeMultimapExplicitTest.java107 assertEquals(Ordering.natural(), copy.keyComparator()); in testMultimapCreateFromTreeMultimap()
125 assertEquals(StringLength.COMPARATOR, multimap.keyComparator()); in testGetComparator()
191 assertEquals(StringLength.COMPARATOR, copy.keyComparator()); in testMultimapComparators()
/external/icu/icu4c/source/common/
Duhash.cpp261 result->keyComparator = keyComp; in _uhash_init()
348 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/guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/
DHelpers.java169 final Comparator<? super K> keyComparator) {
174 return (keyComparator == null)
176 : keyComparator.compare(a.getKey(), b.getKey());
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DHelpers.java171 final Comparator<? super K> keyComparator) {
176 return (keyComparator == null)
178 : keyComparator.compare(a.getKey(), b.getKey());