Home
last modified time | relevance | path

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

12345678910>>...16

/external/guava/guava/src/com/google/common/collect/
DCut.java37 abstract class Cut<C extends Comparable> implements Comparable<Cut<C>>, Serializable {
107 static <C extends Comparable> Cut<C> belowAll() { in belowAll()
113 private static final class BelowAll extends Cut<Comparable<?>> {
119 @Override Comparable<?> endpoint() { in endpoint()
122 @Override boolean isLessThan(Comparable<?> value) { in isLessThan()
131 @Override Cut<Comparable<?>> withLowerBoundType(BoundType boundType, in withLowerBoundType()
132 DiscreteDomain<Comparable<?>> domain) { in withLowerBoundType()
135 @Override Cut<Comparable<?>> withUpperBoundType(BoundType boundType, in withUpperBoundType()
136 DiscreteDomain<Comparable<?>> domain) { in withUpperBoundType()
145 @Override Comparable<?> leastValueAbove( in leastValueAbove()
[all …]
DReverseNaturalOrdering.java30 extends Ordering<Comparable> implements Serializable {
33 @Override public int compare(Comparable left, Comparable right) { in compare()
42 @Override public <S extends Comparable> Ordering<S> reverse() { in reverse()
48 @Override public <E extends Comparable> E min(E a, E b) { in min()
52 @Override public <E extends Comparable> E min(E a, E b, E c, E... rest) { in min()
56 @Override public <E extends Comparable> E min(Iterator<E> iterator) { in min()
60 @Override public <E extends Comparable> E min(Iterable<E> iterable) { in min()
64 @Override public <E extends Comparable> E max(E a, E b) { in max()
68 @Override public <E extends Comparable> E max(E a, E b, E c, E... rest) { in max()
72 @Override public <E extends Comparable> E max(Iterator<E> iterator) { in max()
[all …]
DRange.java115 public final class Range<C extends Comparable> implements Predicate<C>, Serializable {
125 static <C extends Comparable<?>> Function<Range<C>, Cut<C>> lowerBoundFn() { in lowerBoundFn()
137 static <C extends Comparable<?>> Function<Range<C>, Cut<C>> upperBoundFn() { in upperBoundFn()
151 static <C extends Comparable<?>> Range<C> create( in create()
164 public static <C extends Comparable<?>> Range<C> open(C lower, C upper) { in open()
176 public static <C extends Comparable<?>> Range<C> closed(C lower, C upper) { in closed()
188 public static <C extends Comparable<?>> Range<C> closedOpen( in closedOpen()
201 public static <C extends Comparable<?>> Range<C> openClosed( in openClosed()
215 public static <C extends Comparable<?>> Range<C> range( in range()
235 public static <C extends Comparable<?>> Range<C> lessThan(C endpoint) { in lessThan()
[all …]
DImmutableSortedSet.java97 private static final Comparator<Comparable> NATURAL_ORDER =
100 private static final ImmutableSortedSet<Comparable> NATURAL_EMPTY_SET =
101 new EmptyImmutableSortedSet<Comparable>(NATURAL_ORDER);
127 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( in of()
141 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( in of()
154 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( in of()
167 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( in of()
180 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( in of()
194 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( in of()
196 Comparable[] contents = new Comparable[6 + remaining.length]; in of()
[all …]
DImmutableSortedMultiset.java86 private static final Comparator<Comparable> NATURAL_ORDER = Ordering.natural();
88 private static final ImmutableSortedMultiset<Comparable> NATURAL_EMPTY_MULTISET =
89 new EmptyImmutableSortedMultiset<Comparable>(NATURAL_ORDER);
102 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of(E element) { in of()
117 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of(E e1, E e2) { in of()
128 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of(E e1, E e2, E e3) { in of()
139 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of( in of()
151 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of( in of()
163 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of( in of()
178 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> copyOf(E[] elements) { in copyOf()
[all …]
DNaturalOrdering.java29 extends Ordering<Comparable> implements Serializable {
32 @Override public int compare(Comparable left, Comparable right) { in compare()
38 @Override public <S extends Comparable> Ordering<S> reverse() { in reverse()
DImmutableRangeSet.java43 public final class ImmutableRangeSet<C extends Comparable> extends AbstractRangeSet<C>
46 private static final ImmutableRangeSet<Comparable<?>> EMPTY =
47 new ImmutableRangeSet<Comparable<?>>(ImmutableList.<Range<Comparable<?>>>of());
49 private static final ImmutableRangeSet<Comparable<?>> ALL =
50 new ImmutableRangeSet<Comparable<?>>(ImmutableList.of(Range.<Comparable<?>>all()));
56 public static <C extends Comparable> ImmutableRangeSet<C> of() { in of()
64 static <C extends Comparable> ImmutableRangeSet<C> all() { in all()
72 public static <C extends Comparable> ImmutableRangeSet<C> of(Range<C> range) { in of()
86 public static <C extends Comparable> ImmutableRangeSet<C> copyOf(RangeSet<C> rangeSet) { in copyOf()
511 private static class AsSetSerializedForm<C extends Comparable> implements Serializable {
[all …]
DComparisonChain.java75 Comparable left, Comparable right) {
119 @Nullable Comparable left, @Nullable Comparable right) { in compare()
155 Comparable<?> left, Comparable<?> right); in compare()
DImmutableRangeMap.java42 public class ImmutableRangeMap<K extends Comparable<?>, V> implements RangeMap<K, V> {
44 private static final ImmutableRangeMap<Comparable<?>, Object> EMPTY =
45 new ImmutableRangeMap<Comparable<?>, Object>(
46 ImmutableList.<Range<Comparable<?>>>of(), ImmutableList.of());
52 public static <K extends Comparable<?>, V> ImmutableRangeMap<K, V> of() { in of()
59 public static <K extends Comparable<?>, V> ImmutableRangeMap<K, V> of( in of()
65 public static <K extends Comparable<?>, V> ImmutableRangeMap<K, V> copyOf( in copyOf()
83 public static <K extends Comparable<?>, V> Builder<K, V> builder() { in builder()
90 public static final class Builder<K extends Comparable<?>, V> {
DImmutableSortedMap.java65 private static final Comparator<Comparable> NATURAL_ORDER = Ordering.natural();
67 private static final ImmutableSortedMap<Comparable, Object> NATURAL_EMPTY_MAP =
68 new EmptyImmutableSortedMap<Comparable, Object>(NATURAL_ORDER);
123 public static <K extends Comparable<? super K>, V>
136 public static <K extends Comparable<? super K>, V> ImmutableSortedMap<K, V>
149 public static <K extends Comparable<? super K>, V> ImmutableSortedMap<K, V>
163 public static <K extends Comparable<? super K>, V> ImmutableSortedMap<K, V>
177 public static <K extends Comparable<? super K>, V> ImmutableSortedMap<K, V>
205 Ordering<K> naturalOrder = (Ordering<K>) Ordering.<Comparable>natural(); in copyOf()
310 public static <K extends Comparable<?>, V> Builder<K, V> naturalOrder() { in naturalOrder()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DBenchmarkHelpers.java42 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
47 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
52 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
57 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
62 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
67 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
72 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create()
78 abstract <E extends Comparable<E>> Set<E> create(Collection<E> contents); in create()
107 <K extends Comparable<K>, V extends Comparable<V>> SetMultimap<K, V> create( in create()
114 <K extends Comparable<K>, V extends Comparable<V>> SetMultimap<K, V> create( in create()
[all …]
/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/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/
DCollectionUtilities.java267 Comparable ao = (Comparable) ai.next(); // these are ok, since the sizes are != 0 in containsSome()
268 Comparable bo = (Comparable) bi.next(); in containsSome()
273 ao = (Comparable) ai.next(); in containsSome()
276 bo = (Comparable) bi.next(); in containsSome()
320 Comparable ao = (Comparable) ai.next(); // these are ok, since the sizes are != 0 in containsAll()
321 Comparable bo = (Comparable) bi.next(); in containsAll()
327 bo = (Comparable) bi.next(); in containsAll()
328 ao = (Comparable) ai.next(); in containsAll()
331 ao = (Comparable) ai.next(); in containsAll()
566 public static <T extends Comparable> int compare(T a, T b) { in compare()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/
DCollectionUtilities.java268 Comparable ao = (Comparable) ai.next(); // these are ok, since the sizes are != 0 in containsSome()
269 Comparable bo = (Comparable) bi.next(); in containsSome()
274 ao = (Comparable) ai.next(); in containsSome()
277 bo = (Comparable) bi.next(); in containsSome()
321 Comparable ao = (Comparable) ai.next(); // these are ok, since the sizes are != 0 in containsAll()
322 Comparable bo = (Comparable) bi.next(); in containsAll()
328 bo = (Comparable) bi.next(); in containsAll()
329 ao = (Comparable) ai.next(); in containsAll()
332 ao = (Comparable) ai.next(); in containsAll()
567 public static <T extends Comparable> int compare(T a, T b) { in compare()
[all …]
/external/mockito/src/org/mockito/internal/matchers/
DCompareTo.java12 public abstract class CompareTo<T extends Comparable<T>> extends ArgumentMatcher<T> {
13 private final Comparable<T> wanted;
15 public CompareTo(Comparable<T> value) { in CompareTo()
22 if(!(actual instanceof Comparable)) { in matches()
26 return matchResult(((Comparable) actual).compareTo(wanted)); in matches()
/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/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/org/mockito/
DAdditionalMatchers.java55 public static <T extends Comparable<T>> T geq(Comparable<T> value) { in geq()
146 public static <T extends Comparable<T>> T leq(Comparable<T> value) { in leq()
237 public static <T extends Comparable<T>> T gt(Comparable<T> value) { in gt()
328 public static <T extends Comparable<T>> T lt(Comparable<T> value) { in lt()
420 public static <T extends Comparable<T>> T cmpEq(Comparable<T> value) { in cmpEq()
/external/hamcrest/library/src/org/hamcrest/number/
DOrderingComparisons.java14 public static <T extends Comparable<T>> Matcher<T> greaterThan(T value) { in greaterThan()
19 public static <T extends Comparable<T>> Matcher<T> greaterThanOrEqualTo(T value) { in greaterThanOrEqualTo()
26 public static <T extends Comparable<T>> Matcher<T> lessThan(T value) { in lessThan()
33 public static <T extends Comparable<T>> Matcher<T> lessThanOrEqualTo(T value) { in lessThanOrEqualTo()
DIsGreaterThan.java11 public class IsGreaterThan<T extends Comparable<T>> extends TypeSafeMatcher<T> {
12 private final Comparable<T> compareTo;
14 public IsGreaterThan(Comparable<T> compareTo) { in IsGreaterThan()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DTreeMultimap.java81 public static <K extends Comparable, V extends Comparable>
107 public static <K extends Comparable, V extends Comparable>
DImmutableSortedSet.java79 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( in of()
85 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( in of()
91 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( in of()
97 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( in of()
103 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( in of()
109 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( in of()
116 return ofInternal(Ordering.natural(), (E[]) all.toArray(new Comparable[0])); in of()
147 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> copyOf( in copyOf()
390 public static <E extends Comparable<?>> Builder<E> reverseOrder() { in reverseOrder()
394 public static <E extends Comparable<?>> Builder<E> naturalOrder() { in naturalOrder()
/external/easymock/src/org/easymock/
DEasyMock.java308 public static <T extends Comparable<T>> T geq(Comparable<T> value) { in geq()
400 public static <T extends Comparable<T>> T leq(Comparable<T> value) { in leq()
492 public static <T extends Comparable<T>> T gt(Comparable<T> value) { in gt()
584 public static <T extends Comparable<T>> T lt(Comparable<T> value) { in lt()
1419 public static <T extends Comparable<T>> T cmpEq(Comparable<T> value) { in cmpEq()
/external/guava/guava-testlib/src/com/google/common/testing/
DFreshValueGenerator.java393 @Generates private Comparable<?> freshComparable() { in freshComparable()
492 @Generates private static <C extends Comparable> Range<C> freshRange(C freshElement) {
546 @Generates private static <E extends Comparable<? super E>> SortedSet<E>
551 @Generates private static <E extends Comparable<? super E>> NavigableSet<E>
556 @Generates private static <E extends Comparable<? super E>> TreeSet<E> freshTreeSet(
563 @Generates private static <E extends Comparable<? super E>> ImmutableSortedSet<E>
588 @Generates private static <E extends Comparable<E>> SortedMultiset<E> freshSortedMultiset(
593 @Generates private static <E extends Comparable<E>> TreeMultiset<E> freshTreeMultiset(
600 @Generates private static <E extends Comparable<E>> ImmutableSortedMultiset<E>
629 @Generates private static <K extends Comparable<? super K>, V> SortedMap<K, V>
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/
DHelpers.java175 ? ((Comparable) a.getKey()).compareTo(b.getKey())
209 public static <T extends Comparable<? super T>> void testCompareToAndEquals(
309 private static final Comparator<Comparable> NATURAL_ORDER = new Comparator<Comparable>() {
311 @Override public int compare(Comparable left, Comparable right) {
316 public static <K extends Comparable, V> Iterable<Entry<K, V>> orderEntriesByKey(

12345678910>>...16