Home
last modified time | relevance | path

Searched refs:Ordering (Results 1 – 25 of 199) sorted by relevance

12345678

/external/guava/guava-tests/test/com/google/common/collect/
DOrderingTest.java30 import com.google.common.collect.Ordering.ArbitraryOrdering;
31 import com.google.common.collect.Ordering.IncomparableValueException;
58 private final Ordering<Number> numberOrdering = new NumberOrdering();
61 Ordering<Object> comparator = Ordering.allEqual(); in testAllEqual()
76 Ordering<Integer> comparator = Ordering.natural(); in testNatural()
96 Ordering<String> caseInsensitiveOrdering in testFrom()
97 = Ordering.from(String.CASE_INSENSITIVE_ORDER); in testFrom()
103 Ordering<String> orderingFromOrdering = in testFrom()
104 Ordering.from(Ordering.<String>natural()); in testFrom()
106 .addEqualityGroup(caseInsensitiveOrdering, Ordering.from(String.CASE_INSENSITIVE_ORDER)) in testFrom()
[all …]
DTreeMultimapNaturalTest.java73 Ordering.natural().nullsFirst(), Ordering.natural().nullsFirst()); in suite()
82 return new Ordering<Entry<String, String>>() { in suite()
86 .compare(left.getKey(), right.getKey(), Ordering.natural().nullsFirst()) in suite()
87 .compare(left.getValue(), right.getValue(), Ordering.natural().nullsFirst()) in suite()
109 Ordering.natural().nullsFirst(), Ordering.natural()); in suite()
118 return Ordering.natural().nullsFirst().sortedCopy(insertionOrder); in suite()
161 return new Ordering<Entry<String, ?>>() { in suite()
213 Ordering.natural(), Ordering.natural().nullsFirst()); in suite()
220 return Ordering.natural().nullsFirst().sortedCopy(insertionOrder); in suite()
234 Ordering.natural(), Ordering.natural().nullsFirst()); in suite()
[all …]
DSortedIterablesTest.java31 assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Sets.newTreeSet())); in testSameComparator()
35 SortedIterables.hasSameComparator(Ordering.natural(), Maps.newTreeMap().keySet())); in testSameComparator()
37 assertTrue(SortedIterables.hasSameComparator(Ordering.natural().reverse(), in testSameComparator()
38 Sets.newTreeSet(Ordering.natural().reverse()))); in testSameComparator()
42 assertEquals(Ordering.natural(), SortedIterables.comparator(Sets.newTreeSet())); in testComparator()
DTreeBasedTableTest.java152 Collections.reverseOrder(), Ordering.usingToString()); in testCreateExplicitComparators()
163 Collections.reverseOrder(), Ordering.usingToString()); in testCreateCopy()
204 assertSame(Ordering.natural(), sortedTable.rowComparator()); in testRowComparator()
207 Collections.reverseOrder(), Ordering.usingToString()); in testRowComparator()
213 assertSame(Ordering.natural(), sortedTable.columnComparator()); in testColumnComparator()
216 Collections.reverseOrder(), Ordering.usingToString()); in testColumnComparator()
217 assertSame(Ordering.usingToString(), sortedTable.columnComparator()); in testColumnComparator()
222 assertSame(Ordering.natural(), in testRowKeySetComparator()
226 Collections.reverseOrder(), Ordering.usingToString()); in testRowKeySetComparator()
271 assertSame(Ordering.natural(), sortedTable.rowMap().comparator()); in testRowMapComparator()
[all …]
DImmutableTableTest.java228 = builder.orderRowsBy(Ordering.natural()) in testBuilder_orderRowsAndColumnsBy_putAll()
229 .orderColumnsBy(Ordering.natural()) in testBuilder_orderRowsAndColumnsBy_putAll()
240 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_sparse()
241 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_sparse()
263 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_dense()
264 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_dense()
285 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsBy_sparse()
303 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsBy_dense()
320 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderColumnsBy_sparse()
338 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderColumnsBy_dense()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DOrderingTest.java29 import com.google.common.collect.Ordering.ArbitraryOrdering;
30 import com.google.common.collect.Ordering.IncomparableValueException;
56 private final Ordering<Number> numberOrdering = new NumberOrdering();
59 Ordering<Object> comparator = Ordering.allEqual(); in testAllEqual()
74 Ordering<Integer> comparator = Ordering.natural(); in testNatural()
94 Ordering<String> caseInsensitiveOrdering in testFrom()
95 = Ordering.from(String.CASE_INSENSITIVE_ORDER); in testFrom()
101 Ordering<String> orderingFromOrdering = in testFrom()
102 Ordering.from(Ordering.<String>natural()); in testFrom()
104 .addEqualityGroup(caseInsensitiveOrdering, Ordering.from(String.CASE_INSENSITIVE_ORDER)) in testFrom()
[all …]
DTreeMultimapNaturalTest.java123 Ordering.natural();
126 Ordering.natural().reverse().nullsFirst();
141 assertSame(Ordering.natural(), copyFromTree.keyComparator()); in testCreateFromTreeMultimap()
142 assertSame(Ordering.natural(), copyFromTree.valueComparator()); in testCreateFromTreeMultimap()
143 assertSame(Ordering.natural(), copyFromTree.get(1.0).comparator()); in testCreateFromTreeMultimap()
159 assertEquals(Ordering.natural(), copyFromHash.keyComparator()); in testCreateFromHashMultimap()
160 assertEquals(Ordering.natural(), copyFromHash.valueComparator()); in testCreateFromHashMultimap()
177 assertSame(Ordering.natural(), copyFromSorted.keyComparator()); in testCreateFromSortedSetMultimap()
178 assertSame(Ordering.natural(), copyFromSorted.valueComparator()); in testCreateFromSortedSetMultimap()
179 assertSame(Ordering.natural(), copyFromSorted.get(1.0).comparator()); in testCreateFromSortedSetMultimap()
[all …]
DTreeBasedTableTest.java115 Collections.reverseOrder(), Ordering.usingToString()); in testCreateExplicitComparators()
126 Collections.reverseOrder(), Ordering.usingToString()); in testCreateCopy()
161 assertSame(Ordering.natural(), sortedTable.rowComparator()); in testRowComparator()
164 Collections.reverseOrder(), Ordering.usingToString()); in testRowComparator()
170 assertSame(Ordering.natural(), sortedTable.columnComparator()); in testColumnComparator()
173 Collections.reverseOrder(), Ordering.usingToString()); in testColumnComparator()
174 assertSame(Ordering.usingToString(), sortedTable.columnComparator()); in testColumnComparator()
179 assertSame(Ordering.natural(), in testRowKeySetComparator()
183 Collections.reverseOrder(), Ordering.usingToString()); in testRowKeySetComparator()
228 assertSame(Ordering.natural(), sortedTable.rowMap().comparator()); in testRowMapComparator()
[all …]
DImmutableTableTest.java227 = builder.orderRowsBy(Ordering.natural()) in testBuilder_orderRowsAndColumnsBy_putAll()
228 .orderColumnsBy(Ordering.natural()) in testBuilder_orderRowsAndColumnsBy_putAll()
239 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_sparse()
240 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_sparse()
262 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_dense()
263 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_dense()
284 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsBy_sparse()
302 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsBy_dense()
319 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderColumnsBy_sparse()
337 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderColumnsBy_dense()
/external/guava/guava/src/com/google/common/collect/
DOrdering.java91 public abstract class Ordering<T> implements Comparator<T> { class
105 public static <C extends Comparable> Ordering<C> natural() { in natural()
106 return (Ordering<C>) NaturalOrdering.INSTANCE; in natural()
123 public static <T> Ordering<T> from(Comparator<T> comparator) { in from()
124 return (comparator instanceof Ordering) in from()
125 ? (Ordering<T>) comparator in from()
135 @Deprecated public static <T> Ordering<T> from(Ordering<T> ordering) { in from()
161 public static <T> Ordering<T> explicit(List<T> valuesInOrder) { in explicit()
189 public static <T> Ordering<T> explicit( in explicit()
224 public static Ordering<Object> allEqual() { in allEqual()
[all …]
DNullsFirstOrdering.java27 final class NullsFirstOrdering<T> extends Ordering<T> implements Serializable {
28 final Ordering<? super T> ordering;
30 NullsFirstOrdering(Ordering<? super T> ordering) { in NullsFirstOrdering()
47 @Override public <S extends T> Ordering<S> reverse() { in reverse()
53 @Override public <S extends T> Ordering<S> nullsFirst() { in nullsFirst()
54 return (Ordering<S>) this; in nullsFirst()
57 @Override public <S extends T> Ordering<S> nullsLast() { in nullsLast()
DNullsLastOrdering.java27 final class NullsLastOrdering<T> extends Ordering<T> implements Serializable {
28 final Ordering<? super T> ordering;
30 NullsLastOrdering(Ordering<? super T> ordering) { in NullsLastOrdering()
47 @Override public <S extends T> Ordering<S> reverse() { in reverse()
52 @Override public <S extends T> Ordering<S> nullsFirst() { in nullsFirst()
57 @Override public <S extends T> Ordering<S> nullsLast() { in nullsLast()
58 return (Ordering<S>) this; in nullsLast()
DImmutableSortedSet.java98 Ordering.natural();
130 ImmutableList.of(element), Ordering.natural()); in of()
143 return construct(Ordering.natural(), 2, e1, e2); in of()
156 return construct(Ordering.natural(), 3, e1, e2, e3); in of()
169 return construct(Ordering.natural(), 4, e1, e2, e3, e4); in of()
182 return construct(Ordering.natural(), 5, e1, e2, e3, e4, e5); in of()
204 return construct(Ordering.natural(), contents.length, (E[]) contents); in of()
219 return construct(Ordering.natural(), elements.length, elements.clone()); in copyOf()
253 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
291 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
[all …]
DImmutableSortedMultiset.java86 private static final Comparator<Comparable> NATURAL_ORDER = Ordering.natural();
118 return copyOf(Ordering.natural(), Arrays.asList(e1, e2)); in of()
129 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3)); in of()
141 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4)); in of()
153 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4, e5)); in of()
169 return copyOf(Ordering.natural(), all); in of()
179 return copyOf(Ordering.natural(), Arrays.asList(elements)); in copyOf()
208 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
226 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
402 return new Builder<E>(Ordering.natural().reverse()); in reverseOrder()
[all …]
DReverseOrdering.java30 final class ReverseOrdering<T> extends Ordering<T> implements Serializable {
31 final Ordering<? super T> forwardOrder;
33 ReverseOrdering(Ordering<? super T> forwardOrder) { in ReverseOrdering()
42 @Override public <S extends T> Ordering<S> reverse() { in reverse()
43 return (Ordering<S>) forwardOrder; in reverse()
DNaturalOrdering.java29 extends Ordering<Comparable> implements Serializable {
38 @Override public <S extends Comparable> Ordering<S> reverse() { in reverse()
39 return (Ordering<S>) ReverseNaturalOrdering.INSTANCE; in reverse()
DImmutableSortedMap.java65 private static final Comparator<Comparable> NATURAL_ORDER = Ordering.natural();
71 if (Ordering.natural().equals(comparator)) { in emptyMap()
138 return fromEntries(Ordering.natural(), false, 2, entryOf(k1, v1), entryOf(k2, v2)); in of()
151 return fromEntries(Ordering.natural(), false, 3, entryOf(k1, v1), entryOf(k2, v2), in of()
165 return fromEntries(Ordering.natural(), false, 4, entryOf(k1, v1), entryOf(k2, v2), in of()
179 return fromEntries(Ordering.natural(), false, 5, entryOf(k1, v1), entryOf(k2, v2), in of()
205 Ordering<K> naturalOrder = (Ordering<K>) Ordering.<Comparable>natural(); in copyOf()
294 Arrays.sort(entries, 0, size, Ordering.from(comparator).<K>onKeys()); in sortEntries()
311 return new Builder<K, V>(Ordering.natural()); in naturalOrder()
331 return new Builder<K, V>(Ordering.natural().reverse()); in reverseOrder()
DAllEqualOrdering.java32 final class AllEqualOrdering extends Ordering<Object> implements Serializable {
52 public <S> Ordering<S> reverse() { in reverse()
53 return (Ordering<S>) this; in reverse()
DLexicographicalOrdering.java32 extends Ordering<Iterable<T>> implements Serializable {
33 final Ordering<? super T> elementOrder;
35 LexicographicalOrdering(Ordering<? super T> elementOrder) { in LexicographicalOrdering()
DByFunctionOrdering.java35 extends Ordering<F> implements Serializable {
37 final Ordering<T> ordering;
40 Function<F, ? extends T> function, Ordering<T> ordering) { in ByFunctionOrdering()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableSortedSet.java54 private static final Comparator NATURAL_ORDER = Ordering.natural();
81 return ofInternal(Ordering.natural(), element); in of()
87 return ofInternal(Ordering.natural(), e1, e2); in of()
93 return ofInternal(Ordering.natural(), e1, e2, e3); in of()
99 return ofInternal(Ordering.natural(), e1, e2, e3, e4); in of()
105 return ofInternal(Ordering.natural(), e1, e2, e3, e4, e5); in of()
116 return ofInternal(Ordering.natural(), (E[]) all.toArray(new Comparable[0])); in of()
136 return copyOfInternal((Ordering<E>) Ordering.natural(), (Collection) elements, false); in copyOf()
140 return copyOfInternal((Ordering<E>) Ordering.natural(), (Iterable) elements, false); in copyOf()
144 return copyOfInternal((Ordering<E>) Ordering.natural(), (Iterator) elements); in copyOf()
[all …]
DImmutableSortedMap.java41 static final Comparator NATURAL_ORDER = Ordering.natural();
84 return create(Ordering.natural(), entryOf(k1, v1)); in of()
89 return new Builder<K, V>(Ordering.natural()) in of()
95 return new Builder<K, V>(Ordering.natural()) in of()
101 return new Builder<K, V>(Ordering.natural()) in of()
107 return new Builder<K, V>(Ordering.natural()) in of()
113 return copyOfInternal((Map) map, (Ordering<K>) Ordering.natural()); in copyOf()
173 return new Builder<K, V>(Ordering.natural()); in naturalOrder()
181 return new Builder<K, V>(Ordering.natural().reverse()); in reverseOrder()
334 return Ordering.from(comparator).nullsFirst(); in nullAccepting()
DTreeMultimap.java83 return new TreeMultimap<K, V>(Ordering.natural(), Ordering.natural()); in create()
109 return new TreeMultimap<K, V>(Ordering.natural(), Ordering.natural(), in create()
/external/jetty/src/java/org/eclipse/jetty/webapp/
DMetaData.java61 …protected Ordering _ordering;//can be set to RelativeOrdering by web-default.xml, web.xml, web-ove…
153 _ordering = new Ordering.AbsoluteOrdering(this); in setDefaults()
159 ((Ordering.AbsoluteOrdering)_ordering).addOthers(); in setDefaults()
161 ((Ordering.AbsoluteOrdering)_ordering).add(s); in setDefaults()
178 _ordering = new Ordering.AbsoluteOrdering(this); in setWebXml()
184 ((Ordering.AbsoluteOrdering)_ordering).addOthers(); in setWebXml()
186 ((Ordering.AbsoluteOrdering)_ordering).add(s); in setWebXml()
213 _ordering = new Ordering.AbsoluteOrdering(this); in addOverride()
219 ((Ordering.AbsoluteOrdering)_ordering).addOthers(); in addOverride()
221 ((Ordering.AbsoluteOrdering)_ordering).add(s); in addOverride()
[all …]
/external/llvm/lib/Transforms/Utils/
DGlobalStatus.cpp81 GS.Ordering = strongerOrdering(GS.Ordering, LI->getOrdering()); in analyzeGlobalAux()
91 GS.Ordering = strongerOrdering(GS.Ordering, SI->getOrdering()); in analyzeGlobalAux()
188 Ordering(NotAtomic) {} in GlobalStatus()

12345678