Home
last modified time | relevance | path

Searched defs:comparator (Results 1 – 25 of 274) sorted by relevance

1234567891011

/external/guava/guava/src/com/google/common/collect/
DComparators.java65 public static <T, S extends T> Comparator<Iterable<S>> lexicographical(Comparator<T> comparator) { in lexicographical()
75 public static <T> boolean isInOrder(Iterable<? extends T> iterable, Comparator<T> comparator) { in isInOrder()
98 Iterable<? extends T> iterable, Comparator<T> comparator) { in isInStrictOrder()
134 public static <T> Collector<T, ?, List<T>> least(int k, Comparator<? super T> comparator) { in least()
165 public static <T> Collector<T, ?, List<T>> greatest(int k, Comparator<? super T> comparator) { in greatest()
229 public static <T> T min(@Nullable T a, @Nullable T b, Comparator<T> comparator) { in min()
267 public static <T> T max(@Nullable T a, @Nullable T b, Comparator<T> comparator) { in max()
DImmutableSortedSet.java78 Comparator<? super E> comparator) { in toImmutableSortedSet()
82 static <E> RegularImmutableSortedSet<E> emptySet(Comparator<? super E> comparator) { in emptySet()
273 Comparator<? super E> comparator, Iterator<? extends E> elements) { in copyOf()
289 Comparator<? super E> comparator, Iterable<? extends E> elements) { in copyOf()
321 Comparator<? super E> comparator, Collection<? extends E> elements) { in copyOf()
340 Comparator<? super E> comparator = SortedIterables.comparator(sortedSet); in copyOfSorted() local
361 Comparator<? super E> comparator, int n, E... contents) { in construct()
388 public static <E> Builder<E> orderedBy(Comparator<E> comparator) { in orderedBy()
428 private final Comparator<? super E> comparator; field in ImmutableSortedSet.Builder
436 public Builder(Comparator<? super E> comparator) { in Builder()
[all …]
DImmutableSortedMultiset.java65 Comparator<? super E> comparator) { in toImmutableSortedMultiset()
81 Comparator<? super E> comparator, in toImmutableSortedMultiset()
95 (Multiset<E> multiset) -> copyOfSortedEntries(comparator, multiset.entrySet())); in toImmutableSortedMultiset() argument
238 Comparator<? super E> comparator, Iterator<? extends E> elements) { in copyOf()
254 Comparator<? super E> comparator, Iterable<? extends E> elements) { in copyOf()
292 Comparator<? super E> comparator, Collection<Entry<E>> entries) { in copyOfSortedEntries()
312 static <E> ImmutableSortedMultiset<E> emptyMultiset(Comparator<? super E> comparator) { in emptyMultiset()
323 public final Comparator<? super E> comparator() { in comparator() method
399 public static <E> Builder<E> orderedBy(Comparator<E> comparator) { in orderedBy()
453 public Builder(Comparator<? super E> comparator) { in Builder()
[all …]
DGeneralRange.java57 static <T> GeneralRange<T> all(Comparator<? super T> comparator) { in all()
66 Comparator<? super T> comparator, @Nullable T endpoint, BoundType boundType) { in downTo()
75 Comparator<? super T> comparator, @Nullable T endpoint, BoundType boundType) { in upTo()
84 Comparator<? super T> comparator, in range()
92 private final Comparator<? super T> comparator; field in GeneralRange
101 Comparator<? super T> comparator, in GeneralRange()
133 Comparator<? super T> comparator() { in comparator() method in GeneralRange
DImmutableSortedMap.java76 Comparator<? super K> comparator, in toImmutableSortedMap()
94 Comparator<? super K> comparator, in toImmutableSortedMap()
118 static <K, V> ImmutableSortedMap<K, V> emptyMap(Comparator<? super K> comparator) { in emptyMap()
141 private static <K, V> ImmutableSortedMap<K, V> of(Comparator<? super K> comparator, K k1, V v1) { in of()
236 Map<? extends K, ? extends V> map, Comparator<? super K> comparator) { in copyOf()
272 Comparator<? super K> comparator) { in copyOf()
288 Comparator<? super K> comparator = map.comparator(); in copyOfSorted() local
307 Map<? extends K, ? extends V> map, Comparator<? super K> comparator) { in copyOfInternal()
333 Comparator<? super K> comparator, in fromEntries()
345 final Comparator<? super K> comparator, in fromEntries()
[all …]
DSortedLists.java52 Comparator<? super E> comparator, E key, List<? extends E> list, int foundIndex) { in resultIndex()
60 Comparator<? super E> comparator, E key, List<? extends E> list, int foundIndex) { in resultIndex()
82 Comparator<? super E> comparator, E key, List<? extends E> list, int foundIndex) { in resultIndex()
108 Comparator<? super E> comparator, E key, List<? extends E> list, int foundIndex) { in resultIndex()
119 Comparator<? super E> comparator, E key, List<? extends E> list, int foundIndex) { in resultIndex()
125 Comparator<? super E> comparator, E key, List<? extends E> list, int foundIndex); in resultIndex()
250 Comparator<? super E> comparator, in binarySearch()
DTopKSelector.java73 public static <T> TopKSelector<T> least(int k, Comparator<? super T> comparator) { in least()
94 public static <T> TopKSelector<T> greatest(int k, Comparator<? super T> comparator) { in greatest()
99 private final Comparator<? super T> comparator; field in TopKSelector
115 private TopKSelector(Comparator<? super T> comparator, int k) { in TopKSelector()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableSortedSet.java61 static <E> ImmutableSortedSet<E> emptySet(Comparator<? super E> comparator) { in emptySet()
71 Comparator<? super E> comparator) { in toImmutableSortedSet()
117 Comparator<? super E> comparator, E... elements) { in ofInternal()
149 Comparator<? super E> comparator, Iterable<? extends E> elements) { in copyOf()
155 Comparator<? super E> comparator, Collection<? extends E> elements) { in copyOf()
161 Comparator<? super E> comparator, Iterator<? extends E> elements) { in copyOf()
168 Comparator<? super E> comparator = sortedSet.comparator(); in copyOfSorted() local
176 Comparator<? super E> comparator, Iterable<? extends E> elements, boolean fromSortedSet) { in copyOfInternal()
196 Comparator<? super E> comparator, Iterator<? extends E> elements) { in copyOfInternal()
210 private static boolean hasSameComparator(Iterable<?> elements, Comparator<?> comparator) { in hasSameComparator()
[all …]
DImmutableSortedMap.java61 private final transient Comparator<? super K> comparator; field in ImmutableSortedMap
63 ImmutableSortedMap(SortedMap<K, V> delegate, Comparator<? super K> comparator) { in ImmutableSortedMap()
70 Comparator<? super K> comparator, in toImmutableSortedMap()
77 Comparator<? super K> comparator, in toImmutableSortedMap()
137 Map<? extends K, ? extends V> map, Comparator<? super K> comparator) { in copyOf()
148 Comparator<? super K> comparator) { in copyOf()
156 Comparator<? super K> comparator = in copyOfSorted() local
162 Map<? extends K, ? extends V> map, Comparator<? super K> comparator) { in copyOfInternal()
209 public static <K, V> Builder<K, V> orderedBy(Comparator<K> comparator) { in orderedBy()
218 private final Comparator<? super K> comparator; field in ImmutableSortedMap.Builder
[all …]
/external/guava/android/guava-tests/benchmark/com/google/common/collect/
DMinMaxPriorityQueueBenchmark.java35 @Param private ComparatorType comparator; field in MinMaxPriorityQueueBenchmark
83 public InvertedMinMaxPriorityQueue(Comparator<T> comparator) { in InvertedMinMaxPriorityQueue()
101 public Queue<Integer> create(Comparator<Integer> comparator) { in create()
107 public Queue<Integer> create(Comparator<Integer> comparator) { in create()
113 public Queue<Integer> create(Comparator<Integer> comparator) { in create()
118 public abstract Queue<Integer> create(Comparator<Integer> comparator); in create()
/external/guava/guava-tests/benchmark/com/google/common/collect/
DMinMaxPriorityQueueBenchmark.java35 @Param private ComparatorType comparator; field in MinMaxPriorityQueueBenchmark
83 public InvertedMinMaxPriorityQueue(Comparator<T> comparator) { in InvertedMinMaxPriorityQueue()
101 public Queue<Integer> create(Comparator<Integer> comparator) { in create()
107 public Queue<Integer> create(Comparator<Integer> comparator) { in create()
113 public Queue<Integer> create(Comparator<Integer> comparator) { in create()
118 public abstract Queue<Integer> create(Comparator<Integer> comparator); in create()
/external/guava/android/guava/src/com/google/common/collect/
DImmutableSortedSet.java61 static <E> RegularImmutableSortedSet<E> emptySet(Comparator<? super E> comparator) { in emptySet()
252 Comparator<? super E> comparator, Iterator<? extends E> elements) { in copyOf()
268 Comparator<? super E> comparator, Iterable<? extends E> elements) { in copyOf()
300 Comparator<? super E> comparator, Collection<? extends E> elements) { in copyOf()
319 Comparator<? super E> comparator = SortedIterables.comparator(sortedSet); in copyOfSorted() local
340 Comparator<? super E> comparator, int n, E... contents) { in construct()
372 public static <E> Builder<E> orderedBy(Comparator<E> comparator) { in orderedBy()
412 private final Comparator<? super E> comparator; field in ImmutableSortedSet.Builder
418 public Builder(Comparator<? super E> comparator) { in Builder()
502 static int unsafeCompare(Comparator<?> comparator, Object a, Object b) { in unsafeCompare()
[all …]
DComparators.java61 public static <T, S extends T> Comparator<Iterable<S>> lexicographical(Comparator<T> comparator) { in lexicographical()
70 public static <T> boolean isInOrder(Iterable<? extends T> iterable, Comparator<T> comparator) { in isInOrder()
92 Iterable<? extends T> iterable, Comparator<T> comparator) { in isInStrictOrder()
142 public static <T> T min(@NullableDecl T a, @NullableDecl T b, Comparator<T> comparator) { in min()
180 public static <T> T max(@NullableDecl T a, @NullableDecl T b, Comparator<T> comparator) { in max()
DImmutableSortedMap.java67 static <K, V> ImmutableSortedMap<K, V> emptyMap(Comparator<? super K> comparator) { in emptyMap()
90 private static <K, V> ImmutableSortedMap<K, V> of(Comparator<? super K> comparator, K k1, V v1) { in of()
185 Map<? extends K, ? extends V> map, Comparator<? super K> comparator) { in copyOf()
221 Comparator<? super K> comparator) { in copyOf()
237 Comparator<? super K> comparator = map.comparator(); in copyOfSorted() local
256 Map<? extends K, ? extends V> map, Comparator<? super K> comparator) { in copyOfInternal()
282 Comparator<? super K> comparator, in fromEntries()
294 final Comparator<? super K> comparator, in fromEntries()
367 public static <K, V> Builder<K, V> orderedBy(Comparator<K> comparator) { in orderedBy()
403 private final Comparator<? super K> comparator; field in ImmutableSortedMap.Builder
[all …]
DGeneralRange.java57 static <T> GeneralRange<T> all(Comparator<? super T> comparator) { in all()
66 Comparator<? super T> comparator, @NullableDecl T endpoint, BoundType boundType) { in downTo()
75 Comparator<? super T> comparator, @NullableDecl T endpoint, BoundType boundType) { in upTo()
84 Comparator<? super T> comparator, in range()
92 private final Comparator<? super T> comparator; field in GeneralRange
101 Comparator<? super T> comparator, in GeneralRange()
133 Comparator<? super T> comparator() { in comparator() method in GeneralRange
DSortedLists.java52 Comparator<? super E> comparator, E key, List<? extends E> list, int foundIndex) { in resultIndex()
60 Comparator<? super E> comparator, E key, List<? extends E> list, int foundIndex) { in resultIndex()
82 Comparator<? super E> comparator, E key, List<? extends E> list, int foundIndex) { in resultIndex()
108 Comparator<? super E> comparator, E key, List<? extends E> list, int foundIndex) { in resultIndex()
119 Comparator<? super E> comparator, E key, List<? extends E> list, int foundIndex) { in resultIndex()
125 Comparator<? super E> comparator, E key, List<? extends E> list, int foundIndex); in resultIndex()
250 Comparator<? super E> comparator, in binarySearch()
DImmutableSortedMultiset.java194 Comparator<? super E> comparator, Iterator<? extends E> elements) { in copyOf()
211 Comparator<? super E> comparator, Iterable<? extends E> elements) { in copyOf()
246 Comparator<? super E> comparator, Collection<Entry<E>> entries) { in copyOfSortedEntries()
266 static <E> ImmutableSortedMultiset<E> emptyMultiset(Comparator<? super E> comparator) { in emptyMultiset()
277 public final Comparator<? super E> comparator() { in comparator() method in ImmutableSortedMultiset
353 public static <E> Builder<E> orderedBy(Comparator<E> comparator) { in orderedBy()
409 private final Comparator<? super E> comparator; field in ImmutableSortedMultiset.Builder
429 public Builder(Comparator<? super E> comparator) { in Builder()
636 final Comparator<? super E> comparator; field in ImmutableSortedMultiset.SerializedForm
DTopKSelector.java72 public static <T> TopKSelector<T> least(int k, Comparator<? super T> comparator) { in least()
93 public static <T> TopKSelector<T> greatest(int k, Comparator<? super T> comparator) { in greatest()
98 private final Comparator<? super T> comparator; field in TopKSelector
114 private TopKSelector(Comparator<? super T> comparator, int k) { in TopKSelector()
/external/guava/android/guava/src/com/google/common/graph/
DElementOrder.java54 private final Comparator<T> comparator; field in ElementOrder
74 private ElementOrder(Type type, @NullableDecl Comparator<T> comparator) { in ElementOrder()
141 public static <S> ElementOrder<S> sorted(Comparator<S> comparator) { in sorted()
155 public Comparator<T> comparator() { in comparator() method in ElementOrder
/external/guava/guava/src/com/google/common/graph/
DElementOrder.java53 private final @Nullable Comparator<T> comparator; field in ElementOrder
73 private ElementOrder(Type type, @Nullable Comparator<T> comparator) { in ElementOrder()
140 public static <S> ElementOrder<S> sorted(Comparator<S> comparator) { in sorted()
154 public Comparator<T> comparator() { in comparator() method in ElementOrder
/external/catch2/include/internal/
Dcatch_matchers_string.cpp36 …StringMatcherBase::StringMatcherBase( std::string const& operation, CasedString const& comparator ) in StringMatcherBase()
53 …EqualsMatcher::EqualsMatcher( CasedString const& comparator ) : StringMatcherBase( "equals", compa… in EqualsMatcher()
60 …ContainsMatcher::ContainsMatcher( CasedString const& comparator ) : StringMatcherBase( "contains",… in ContainsMatcher()
67 …StartsWithMatcher::StartsWithMatcher( CasedString const& comparator ) : StringMatcherBase( "starts… in StartsWithMatcher()
74 …EndsWithMatcher::EndsWithMatcher( CasedString const& comparator ) : StringMatcherBase( "ends with"… in EndsWithMatcher()
/external/replicaisland/src/com/replica/replicaisland/
DQuickSorter.java22 public void sort(Type[] array, int count, Comparator<Type> comparator) { in sort()
45 public void quicksort(Type[] a, int left, int right, Comparator<Type> comparator) { in quicksort()
53 private int partition(Type[] a, int left, int right, Comparator<Type> comparator) { in partition()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DIterableComparator.java19 private final Comparator<T> comparator; field in IterableComparator
26 public IterableComparator(Comparator<T> comparator) { in IterableComparator()
30 public IterableComparator(Comparator<T> comparator, boolean shorterFirst) { in IterableComparator()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DIterableComparator.java21 private final Comparator<T> comparator; field in IterableComparator
28 public IterableComparator(Comparator<T> comparator) { in IterableComparator()
32 public IterableComparator(Comparator<T> comparator, boolean shorterFirst) { in IterableComparator()
/external/llvm-project/pstl/test/std/algorithms/alg.modifying.operations/
Drotate_copy.pass.cpp57 struct comparator struct
59 using T1 = typename std::iterator_traits<It1>::value_type;
60 using T2 = typename std::iterator_traits<It2>::value_type;
62 operator()(T1 a, T2 b) in operator ()()

1234567891011