Home
last modified time | relevance | path

Searched refs:Comparable (Results 1 – 25 of 380) 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 …]
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 …]
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()
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/cldr/tools/java/org/unicode/cldr/tool/
DTablePrinter.java27 Comparable<?>[][] data = { in main()
47 private List<Comparable<Object>[]> rows = new ArrayList<Comparable<Object>[]>();
148 public TablePrinter addRow(Comparable<Object>[] data) { in addRow()
155 Comparable<Object>[] data2 = rows.get(0); in addRow()
168 Collection<Comparable<Object>> partialRow;
174 partialRow = new ArrayList<Comparable<Object>>(); in addRow()
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()
[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/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/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/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/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/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()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
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()
DTreeMultimap.java81 public static <K extends Comparable, V extends Comparable>
107 public static <K extends Comparable, V extends Comparable>
/external/turbine/javatests/com/google/turbine/lower/testdata/
Dfirstcomparator.test11 public enum FirstComparator implements Comparator<Pair<Comparable, Object>> {
16 Pair<Comparable, Object> pair1, Pair<Comparable, Object> pair2) {
/external/mockito/src/test/java/org/mockito/internal/util/reflection/
DGenericMetadataSupportTest.java24 interface UpperBoundedTypeWithClass<E extends Number & Comparable<E>> {
27 interface UpperBoundedTypeWithInterfaces<E extends Comparable<E> & Cloneable> {
38 interface GenericsNest<K extends Comparable<K> & Cloneable> extends Map<K, Set<Number>> {
120 assertThat(genericMetadata.rawType()).isEqualTo(Comparable.class); in bounded_typeVariable_return_type_of____returningK____resolved_to_Comparable_and_with_BoundedType()
149 assertThat(inferFrom(firstBoundOfE).rawType()).isEqualTo(Comparable.class); in paramType_with_type_parameters_return_type_of____paramType_with_type_params____resolved_to_Collection_and_type_argument_to_Parameterized_Set()
156 assertThat(genericMetadata.rawType()).isEqualTo(Comparable.class); in typeVariable_with_type_parameters_return_type_of____typeVar_with_type_params____resolved_K_hence_to_Comparable_and_with_BoundedType()
188 assertThat(inferFrom(boundedType.firstBound()).rawType()).isEqualTo(Comparable.class); in paramType_with_wildcard_return_type_of____returning_wildcard_with_typeVar_lower_bound____resolved_to_List_and_type_argument_to_Integer()
198 assertThat(inferFrom(boundedType.firstBound()).rawType()).isEqualTo(Comparable.class); in paramType_with_wildcard_return_type_of____returning_wildcard_with_typeVar_upper_bound____resolved_to_List_and_type_argument_to_Integer()
/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()

12345678910>>...16