Home
last modified time | relevance | path

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

12

/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DTreeMultimap.java75 private transient Comparator<? super V> valueComparator; field in TreeMultimap
96 Comparator<? super V> valueComparator) { in create() argument
98 checkNotNull(valueComparator)); in create()
114 Comparator<? super V> valueComparator) { in TreeMultimap() argument
117 this.valueComparator = valueComparator; in TreeMultimap()
121 Comparator<? super V> valueComparator, in TreeMultimap() argument
123 this(keyComparator, valueComparator); in TreeMultimap()
136 return new TreeSet<V>(valueComparator); in createCollection()
155 public Comparator<? super V> valueComparator() { in valueComparator() method in TreeMultimap
156 return valueComparator; in valueComparator()
DImmutableSetMultimap.java252 public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) { in orderValuesBy() argument
253 super.orderValuesBy(valueComparator); in orderValuesBy()
273 return copyOf(builderMultimap, valueComparator); in build()
298 Comparator<? super V> valueComparator) { in copyOf() argument
300 if (multimap.isEmpty() && valueComparator == null) { in copyOf()
320 ImmutableSet<V> set = valueSet(valueComparator, values); in copyOf()
328 builder.build(), size, valueComparator); in copyOf()
338 @Nullable Comparator<? super V> valueComparator) { in ImmutableSetMultimap() argument
340 this.emptySet = emptySet(valueComparator); in ImmutableSetMultimap()
452 @Nullable Comparator<? super V> valueComparator, in valueSet()
[all …]
DImmutableMultimap.java156 Comparator<? super V> valueComparator; field in ImmutableMultimap.Builder
244 public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) { in orderValuesBy() argument
245 this.valueComparator = checkNotNull(valueComparator); in orderValuesBy()
253 if (valueComparator != null) { in build()
256 Collections.sort(list, valueComparator); in build()
DImmutableListMultimap.java210 public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) { in orderValuesBy() argument
211 super.orderValuesBy(valueComparator); in orderValuesBy()
DMultimaps.java289 transient Comparator<? super V> valueComparator; field in Multimaps.CustomSortedSetMultimap
295 valueComparator = factory.get().comparator(); in CustomSortedSetMultimap()
302 @Override public Comparator<? super V> valueComparator() { in valueComparator() method in Multimaps.CustomSortedSetMultimap
303 return valueComparator; in valueComparator()
570 public Comparator<? super V> valueComparator() { in valueComparator() method in Multimaps.UnmodifiableSortedSetMultimap
571 return delegate().valueComparator(); in valueComparator()
/external/guava/guava/src/com/google/common/collect/
DTreeMultimap.java81 private transient Comparator<? super V> valueComparator; field in TreeMultimap
102 Comparator<? super V> valueComparator) { in create() argument
104 checkNotNull(valueComparator)); in create()
120 Comparator<? super V> valueComparator) { in TreeMultimap() argument
123 this.valueComparator = valueComparator; in TreeMultimap()
127 Comparator<? super V> valueComparator, in TreeMultimap() argument
129 this(keyComparator, valueComparator); in TreeMultimap()
142 return new TreeSet<V>(valueComparator); in createCollection()
161 public Comparator<? super V> valueComparator() { in valueComparator() method in TreeMultimap
162 return valueComparator; in valueComparator()
[all …]
DImmutableSetMultimap.java258 public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) { in orderValuesBy() argument
259 super.orderValuesBy(valueComparator); in orderValuesBy()
279 return copyOf(builderMultimap, valueComparator); in build()
304 Comparator<? super V> valueComparator) { in copyOf() argument
306 if (multimap.isEmpty() && valueComparator == null) { in copyOf()
326 ImmutableSet<V> set = valueSet(valueComparator, values); in copyOf()
334 builder.build(), size, valueComparator); in copyOf()
344 @Nullable Comparator<? super V> valueComparator) { in ImmutableSetMultimap() argument
346 this.emptySet = emptySet(valueComparator); in ImmutableSetMultimap()
458 @Nullable Comparator<? super V> valueComparator, in valueSet()
[all …]
DForwardingSortedSetMultimap.java57 @Override public Comparator<? super V> valueComparator() { in valueComparator() method in ForwardingSortedSetMultimap
58 return delegate().valueComparator(); in valueComparator()
DImmutableMultimap.java157 Comparator<? super V> valueComparator; field in ImmutableMultimap.Builder
245 public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) { in orderValuesBy() argument
246 this.valueComparator = checkNotNull(valueComparator); in orderValuesBy()
254 if (valueComparator != null) { in build()
257 Collections.sort(list, valueComparator); in build()
DAbstractSortedSetMultimap.java55 Comparator<? super V> comparator = valueComparator(); in createUnmodifiableEmptyCollection()
59 return ImmutableSortedSet.emptySet(valueComparator()); in createUnmodifiableEmptyCollection()
DSortedSetMultimap.java114 Comparator<? super V> valueComparator(); in valueComparator() method
DMultimaps.java356 transient Comparator<? super V> valueComparator; field in Multimaps.CustomSortedSetMultimap
362 valueComparator = factory.get().comparator(); in CustomSortedSetMultimap()
369 @Override public Comparator<? super V> valueComparator() { in valueComparator() method in Multimaps.CustomSortedSetMultimap
370 return valueComparator; in valueComparator()
387 valueComparator = factory.get().comparator(); in readObject()
659 public Comparator<? super V> valueComparator() { in valueComparator() method in Multimaps.UnmodifiableSortedSetMultimap
660 return delegate().valueComparator(); in valueComparator()
DImmutableListMultimap.java215 public Builder<K, V> orderValuesBy(Comparator<? super V> valueComparator) { in orderValuesBy() argument
216 super.orderValuesBy(valueComparator); in orderValuesBy()
/external/guava/guava-gwt/src/com/google/common/collect/
DImmutableSetMultimap_CustomFieldSerializer.java40 Comparator<Object> valueComparator = (Comparator<Object>) reader.readObject(); in instantiate() local
42 if (valueComparator != null) { in instantiate()
43 builder.orderValuesBy(valueComparator); in instantiate()
51 writer.writeObject(instance.valueComparator()); in serialize()
DTreeMultimap_CustomFieldSerializer.java40 Comparator<Object> valueComparator = (Comparator<Object>) in.readObject(); in instantiate() local
44 in, TreeMultimap.create(keyComparator, valueComparator)); in instantiate()
50 out.writeObject(multimap.valueComparator()); in serialize()
DGwtSerializationDependencies.java137 Comparator<? super V> valueComparator; field in GwtSerializationDependencies.TreeMultimapDependencies
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DSortedSetMultimapAsMapTester.java41 assertEquals(multimap().valueComparator(), valueSet.comparator()); in testAsMapValuesImplementSortedSet()
48 assertEquals(multimap().valueComparator(), valueSet.comparator()); in testAsMapGetImplementsSortedSet()
58 assertEquals(multimap().valueComparator(), valueSet.comparator()); in testAsMapRemoveImplementsSortedSet()
DSortedSetMultimapGetTester.java32 multimap().valueComparator(), in testValueComparator()
/external/guava/guava-tests/test/com/google/common/collect/
DTreeMultimapExplicitTest.java110 assertEquals(Ordering.natural(), copy.valueComparator()); in testMultimapCreateFromTreeMultimap()
128 assertEquals(DECREASING_INT_COMPARATOR, multimap.valueComparator()); in testGetComparator()
194 assertEquals(DECREASING_INT_COMPARATOR, copy.valueComparator()); in testMultimapComparators()
217 assertEquals(multimap.valueComparator(), copy.valueComparator()); in testExplicitComparatorSerialization()
DTreeMultimapNaturalTest.java357 assertSame(Ordering.natural(), copyFromTree.valueComparator()); in testCreateFromTreeMultimap()
375 assertEquals(Ordering.natural(), copyFromHash.valueComparator()); in testCreateFromHashMultimap()
393 assertSame(Ordering.natural(), copyFromSorted.valueComparator()); in testCreateFromSortedSetMultimap()
400 assertEquals(Ordering.natural(), multimap.valueComparator()); in testComparators()
411 assertEquals(multimap.valueComparator(), copy.valueComparator()); in testExplicitComparatorSerialization()
430 assertEquals(Ordering.natural(), multimap.valueComparator()); in testTreeMultimapDerived()
454 assertEquals(Ordering.natural(), multimap.valueComparator()); in testTreeMultimapNonGeneric()
DMultimapsTest.java211 assertSame(INT_COMPARATOR, multimap.valueComparator()); in testUnmodifiableSynchronizedTreeMultimap()
223 assertSame(INT_COMPARATOR, multimap.valueComparator()); in testSerializingUnmodifiableSynchronizedTreeMultimap()
742 assertEquals(INT_COMPARATOR, multimap.valueComparator()); in testNewSortedSetMultimap()
753 assertEquals(INT_COMPARATOR, multimap.valueComparator()); in testNewSortedSetMultimapSerialization()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DTreeMultimapNaturalTest.java142 assertSame(Ordering.natural(), copyFromTree.valueComparator()); in testCreateFromTreeMultimap()
160 assertEquals(Ordering.natural(), copyFromHash.valueComparator()); in testCreateFromHashMultimap()
178 assertSame(Ordering.natural(), copyFromSorted.valueComparator()); in testCreateFromSortedSetMultimap()
185 assertEquals(Ordering.natural(), multimap.valueComparator()); in testComparators()
DTreeMultimapExplicitTest.java108 assertEquals(Ordering.natural(), copy.valueComparator()); in testMultimapCreateFromTreeMultimap()
126 assertEquals(DECREASING_INT_COMPARATOR, multimap.valueComparator()); in testGetComparator()
192 assertEquals(DECREASING_INT_COMPARATOR, copy.valueComparator()); in testMultimapComparators()
/external/icu/icu4c/source/common/
Duhash.cpp262 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()
/external/cldr/tools/java/org/unicode/cldr/icu/
DMakefile.java31 private static final Comparator<String> valueComparator = new Comparator<String>() {
62 Collections.sort(entry.values, valueComparator);

12