Home
last modified time | relevance | path

Searched refs:Comparable (Results 1 – 25 of 522) sorted by relevance

12345678910>>...21

/external/guava/guava-tests/test/com/google/common/collect/
DBenchmarkHelpers.java44 <E extends Comparable<E>> Collection<E> create(Collection<E> contents); in create()
50 <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> contents); in create()
64 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
70 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
76 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
82 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
88 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
94 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
100 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
106 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
[all …]
/external/guava/android/guava-tests/test/com/google/common/collect/
DBenchmarkHelpers.java44 <E extends Comparable<E>> Collection<E> create(Collection<E> contents); in create()
50 <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> contents); in create()
64 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
70 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
76 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
82 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
88 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
94 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
100 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
106 public <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
[all …]
DImmutableSetTest.java142 protected <E extends Comparable<? super E>> Set<E> of() { in of()
147 protected <E extends Comparable<? super E>> Set<E> of(E e) { in of()
152 protected <E extends Comparable<? super E>> Set<E> of(E e1, E e2) { in of()
157 protected <E extends Comparable<? super E>> Set<E> of(E e1, E e2, E e3) { in of()
162 protected <E extends Comparable<? super E>> Set<E> of(E e1, E e2, E e3, E e4) { in of()
167 protected <E extends Comparable<? super E>> Set<E> of(E e1, E e2, E e3, E e4, E e5) { in of()
173 protected <E extends Comparable<? super E>> Set<E> of( in of()
179 protected <E extends Comparable<? super E>> Set<E> copyOf(E[] elements) { in copyOf()
184 protected <E extends Comparable<? super E>> Set<E> copyOf(Collection<? extends E> elements) { in copyOf()
189 protected <E extends Comparable<? super E>> Set<E> copyOf(Iterable<? extends E> elements) { in copyOf()
[all …]
/external/guava/guava/src/com/google/common/collect/
DCut.java35 abstract class Cut<C extends Comparable> implements Comparable<Cut<C>>, Serializable {
113 static <C extends Comparable> Cut<C> belowAll() { in belowAll()
119 private static final class BelowAll extends Cut<Comparable<?>> {
127 Comparable<?> endpoint() { in endpoint()
132 boolean isLessThan(Comparable<?> value) { in isLessThan()
147 Cut<Comparable<?>> withLowerBoundType( in withLowerBoundType()
148 BoundType boundType, DiscreteDomain<Comparable<?>> domain) { in withLowerBoundType()
153 Cut<Comparable<?>> withUpperBoundType( in withUpperBoundType()
154 BoundType boundType, DiscreteDomain<Comparable<?>> domain) { in withUpperBoundType()
169 Comparable<?> leastValueAbove(DiscreteDomain<Comparable<?>> domain) { in leastValueAbove()
[all …]
DReverseNaturalOrdering.java28 final class ReverseNaturalOrdering extends Ordering<Comparable> implements Serializable {
32 public int compare(Comparable left, Comparable right) { in compare()
42 public <S extends Comparable> Ordering<S> reverse() { in reverse()
49 public <E extends Comparable> E min(E a, E b) { in min()
54 public <E extends Comparable> E min(E a, E b, E c, E... rest) { in min()
59 public <E extends Comparable> E min(Iterator<E> iterator) { in min()
64 public <E extends Comparable> E min(Iterable<E> iterable) { in min()
69 public <E extends Comparable> E max(E a, E b) { in max()
74 public <E extends Comparable> E max(E a, E b, E c, E... rest) { in max()
79 public <E extends Comparable> E max(Iterator<E> iterator) { in max()
[all …]
DNaturalOrdering.java28 final class NaturalOrdering extends Ordering<Comparable> implements Serializable {
31 private transient @Nullable Ordering<Comparable> nullsFirst;
32 private transient @Nullable Ordering<Comparable> nullsLast;
35 public int compare(Comparable left, Comparable right) { in compare()
42 public <S extends Comparable> Ordering<S> nullsFirst() { in nullsFirst()
43 Ordering<Comparable> result = nullsFirst; in nullsFirst()
51 public <S extends Comparable> Ordering<S> nullsLast() { in nullsLast()
52 Ordering<Comparable> result = nullsLast; in nullsLast()
60 public <S extends Comparable> Ordering<S> reverse() { in reverse()
DRange.java120 public final class Range<C extends Comparable> extends RangeGwtSerializationDependencies
142 static <C extends Comparable<?>> Function<Range<C>, Cut<C>> lowerBoundFn() { in lowerBoundFn()
147 static <C extends Comparable<?>> Function<Range<C>, Cut<C>> upperBoundFn() { in upperBoundFn()
151 static <C extends Comparable<?>> Ordering<Range<C>> rangeLexOrdering() { in rangeLexOrdering()
155 static <C extends Comparable<?>> Range<C> create(Cut<C> lowerBound, Cut<C> upperBound) { in create()
168 public static <C extends Comparable<?>> Range<C> open(C lower, C upper) { in open()
180 public static <C extends Comparable<?>> Range<C> closed(C lower, C upper) { in closed()
192 public static <C extends Comparable<?>> Range<C> closedOpen(C lower, C upper) { in closedOpen()
204 public static <C extends Comparable<?>> Range<C> openClosed(C lower, C upper) { in openClosed()
216 public static <C extends Comparable<?>> Range<C> range( in range()
[all …]
DComparisonChain.java72 public ComparisonChain compare(Comparable left, Comparable right) {
134 public ComparisonChain compare(@Nullable Comparable left, @Nullable Comparable right) { in compare()
184 public abstract ComparisonChain compare(Comparable<?> left, Comparable<?> right); in compare()
DImmutableSortedSet.java96 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of(E element) { in of()
108 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of(E e1, E e2) { in of()
120 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of(E e1, E e2, E e3) { in of()
132 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of(E e1, E e2, E e3, E e4) { in of()
144 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( in of()
158 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( in of()
160 Comparable[] contents = new Comparable[6 + remaining.length]; in of()
181 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> copyOf(E[] elements) { in copyOf()
210 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
242 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
[all …]
DImmutableSortedMultiset.java105 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of(E element) { in of()
119 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of(E e1, E e2) { in of()
130 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of(E e1, E e2, E e3) { in of()
141 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of( in of()
153 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of( in of()
165 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of( in of()
180 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> copyOf(E[] elements) { in copyOf()
209 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
227 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
411 public static <E extends Comparable<?>> Builder<E> reverseOrder() { in reverseOrder()
[all …]
/external/guava/android/guava/src/com/google/common/collect/
DCut.java35 abstract class Cut<C extends Comparable> implements Comparable<Cut<C>>, Serializable {
113 static <C extends Comparable> Cut<C> belowAll() { in belowAll()
119 private static final class BelowAll extends Cut<Comparable<?>> {
127 Comparable<?> endpoint() { in endpoint()
132 boolean isLessThan(Comparable<?> value) { in isLessThan()
147 Cut<Comparable<?>> withLowerBoundType( in withLowerBoundType()
148 BoundType boundType, DiscreteDomain<Comparable<?>> domain) { in withLowerBoundType()
153 Cut<Comparable<?>> withUpperBoundType( in withUpperBoundType()
154 BoundType boundType, DiscreteDomain<Comparable<?>> domain) { in withUpperBoundType()
169 Comparable<?> leastValueAbove(DiscreteDomain<Comparable<?>> domain) { in leastValueAbove()
[all …]
DReverseNaturalOrdering.java28 final class ReverseNaturalOrdering extends Ordering<Comparable> implements Serializable {
32 public int compare(Comparable left, Comparable right) { in compare()
42 public <S extends Comparable> Ordering<S> reverse() { in reverse()
49 public <E extends Comparable> E min(E a, E b) { in min()
54 public <E extends Comparable> E min(E a, E b, E c, E... rest) { in min()
59 public <E extends Comparable> E min(Iterator<E> iterator) { in min()
64 public <E extends Comparable> E min(Iterable<E> iterable) { in min()
69 public <E extends Comparable> E max(E a, E b) { in max()
74 public <E extends Comparable> E max(E a, E b, E c, E... rest) { in max()
79 public <E extends Comparable> E max(Iterator<E> iterator) { in max()
[all …]
DNaturalOrdering.java28 final class NaturalOrdering extends Ordering<Comparable> implements Serializable {
31 @NullableDecl private transient Ordering<Comparable> nullsFirst;
32 @NullableDecl private transient Ordering<Comparable> nullsLast;
35 public int compare(Comparable left, Comparable right) { in compare()
42 public <S extends Comparable> Ordering<S> nullsFirst() { in nullsFirst()
43 Ordering<Comparable> result = nullsFirst; in nullsFirst()
51 public <S extends Comparable> Ordering<S> nullsLast() { in nullsLast()
52 Ordering<Comparable> result = nullsLast; in nullsLast()
60 public <S extends Comparable> Ordering<S> reverse() { in reverse()
DRange.java120 public final class Range<C extends Comparable> extends RangeGwtSerializationDependencies
142 static <C extends Comparable<?>> Function<Range<C>, Cut<C>> lowerBoundFn() { in lowerBoundFn()
147 static <C extends Comparable<?>> Function<Range<C>, Cut<C>> upperBoundFn() { in upperBoundFn()
151 static <C extends Comparable<?>> Ordering<Range<C>> rangeLexOrdering() { in rangeLexOrdering()
155 static <C extends Comparable<?>> Range<C> create(Cut<C> lowerBound, Cut<C> upperBound) { in create()
168 public static <C extends Comparable<?>> Range<C> open(C lower, C upper) { in open()
180 public static <C extends Comparable<?>> Range<C> closed(C lower, C upper) { in closed()
192 public static <C extends Comparable<?>> Range<C> closedOpen(C lower, C upper) { in closedOpen()
204 public static <C extends Comparable<?>> Range<C> openClosed(C lower, C upper) { in openClosed()
216 public static <C extends Comparable<?>> Range<C> range( in range()
[all …]
DImmutableSortedSet.java75 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of(E element) { in of()
87 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of(E e1, E e2) { in of()
99 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of(E e1, E e2, E e3) { in of()
111 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of(E e1, E e2, E e3, E e4) { in of()
123 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( in of()
137 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( in of()
139 Comparable[] contents = new Comparable[6 + remaining.length]; in of()
160 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> copyOf(E[] elements) { in copyOf()
189 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
221 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
[all …]
DComparisonChain.java72 public ComparisonChain compare(Comparable left, Comparable right) {
134 public ComparisonChain compare(@NullableDecl Comparable left, @NullableDecl Comparable right) { in compare()
184 public abstract ComparisonChain compare(Comparable<?> left, Comparable<?> right); in compare()
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/
DFrequency.java55 private final TreeMap<Comparable<?>, Long> freqTable;
61 freqTable = new TreeMap<Comparable<?>, Long>(); in Frequency()
71 … freqTable = new TreeMap<Comparable<?>, Long>((Comparator<? super Comparable<?>>) comparator); in Frequency()
85 Iterator<Comparable<?>> iter = freqTable.keySet().iterator(); in toString()
87 Comparable<?> value = iter.next(); in toString()
114 if (v instanceof Comparable<?>){ in addValue()
115 addValue((Comparable<?>) v); in addValue()
133 public void addValue(Comparable<?> v){ in addValue()
134 Comparable<?> obj = v; in addValue()
205 public Iterator<Comparable<?>> valuesIterator() { in valuesIterator()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/
DCollectionUtilities.java274 Comparable ao = (Comparable) ai.next(); // these are ok, since the sizes are != 0 in containsSome()
275 Comparable bo = (Comparable) bi.next(); in containsSome()
280 ao = (Comparable) ai.next(); in containsSome()
283 bo = (Comparable) bi.next(); in containsSome()
327 Comparable ao = (Comparable) ai.next(); // these are ok, since the sizes are != 0 in containsAll()
328 Comparable bo = (Comparable) bi.next(); in containsAll()
334 bo = (Comparable) bi.next(); in containsAll()
335 ao = (Comparable) ai.next(); in containsAll()
338 ao = (Comparable) ai.next(); in containsAll()
573 public static <T extends Comparable> int compare(T a, T b) { in compare()
[all …]
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/
DCollectionUtilities.java271 Comparable ao = (Comparable) ai.next(); // these are ok, since the sizes are != 0 in containsSome()
272 Comparable bo = (Comparable) bi.next(); in containsSome()
277 ao = (Comparable) ai.next(); in containsSome()
280 bo = (Comparable) bi.next(); in containsSome()
324 Comparable ao = (Comparable) ai.next(); // these are ok, since the sizes are != 0 in containsAll()
325 Comparable bo = (Comparable) bi.next(); in containsAll()
331 bo = (Comparable) bi.next(); in containsAll()
332 ao = (Comparable) ai.next(); in containsAll()
335 ao = (Comparable) ai.next(); in containsAll()
570 public static <T extends Comparable> int compare(T a, T b) { in compare()
[all …]
/external/cldr/tools/java/org/unicode/cldr/tool/
DTablePrinter.java27 Comparable<?>[][] data = { in main()
47 private List<Comparable<Object>[]> rows = new ArrayList<>();
148 public TablePrinter addRow(Comparable<Object>[] data) { in addRow()
155 Comparable<Object>[] data2 = rows.get(0); in addRow()
168 Collection<Comparable<Object>> partialRow;
179 public TablePrinter addCell(Comparable cell) { in addCell()
182 Comparable cell0 = rows.get(0)[i]; in addCell()
205 public TablePrinter addRow(Collection<Comparable<Object>> data) { in addRow()
206 addRow(data.toArray(new Comparable[data.size()])); in addRow()
216 addRow((Comparable[]) row); in addRows()
[all …]
/external/easymock/src/org/easymock/internal/matchers/
DCompareTo.java22 public abstract class CompareTo<T extends Comparable<T>> implements IArgumentMatcher, Serializable {
26 private final Comparable<T> expected;
28 public CompareTo(Comparable<T> value) { in CompareTo()
35 if(!(actual instanceof Comparable)) { in matches()
39 return matchResult(((Comparable) actual).compareTo(expected)); in matches()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/number/
DOrderingComparison.java20 public static <T extends Comparable<T>> Matcher<T> comparesEqualTo(T value) { in comparesEqualTo()
34 public static <T extends Comparable<T>> Matcher<T> greaterThan(T value) { in greaterThan()
48 public static <T extends Comparable<T>> Matcher<T> greaterThanOrEqualTo(T value) { in greaterThanOrEqualTo()
62 public static <T extends Comparable<T>> Matcher<T> lessThan(T value) { in lessThan()
76 public static <T extends Comparable<T>> Matcher<T> lessThanOrEqualTo(T value) { in lessThanOrEqualTo()
/external/cldr/tools/java/org/unicode/cldr/util/
DPair.java17 public final class Pair<T extends Comparable<T>, U extends Comparable<U>> implements java.lang.Comp…
24 public static <T extends Comparable<T>, U extends Comparable<U>> Pair<T, U> of(T arg0, U arg1) { in of()
28 …public static <T extends Comparable<T>, U extends Comparable<U>> Pair<T, U> ofFrozen(T arg0, U arg… in ofFrozen()
/external/apache-http/src/org/apache/commons/codec/
DStringEncoderComparator.java78 Comparable s1 = (Comparable) ((Encoder) this.stringEncoder).encode(o1); in compare()
79 Comparable s2 = (Comparable) ((Encoder) this.stringEncoder).encode(o2); in compare()
/external/mockito/src/test/java/org/mockito/internal/stubbing/defaultanswers/
DReturnsGenericDeepStubsTest.java24 interface GenericsNest<K extends Comparable<K> & Cloneable> extends Map<K, Set<Number>> {
44 Comparable<?> comparableKey = mock.entrySet().iterator().next().getKey(); in generic_deep_mock_frenzy__look_at_these_chained_calls()
57Comparable<?> comparable_bound_that_is_declared_on_typevar_K_in_the_class_which_is_referenced_by_t… in can_create_mock_from_multiple_type_variable_bounds_when_return_type_of_parameterized_method_is_a_parameterizedtype_that_is_referencing_a_typevar_on_class()
66 Comparable<?> comparable_bound_of_typevar_K = mock.returningK(); in can_create_mock_from_multiple_type_variable_bounds_when_method_return_type_is_referencing_a_typevar_on_class()
74Comparable<?> comparable_bound_of_typevar_K_referenced_by_typevar_O = (Comparable<?>) mock.typeVar… in can_create_mock_from_multiple_type_variable_bounds_when_return_type_of_parameterized_method_is_a_typevar_that_is_referencing_a_typevar_on_class()

12345678910>>...21