/libcore/luni/src/main/java/java/lang/ |
H A D | Comparable.java | 26 * The order rule must be both transitive (if {@code x.compareTo(y) < 0} and 27 * {@code y.compareTo(z) < 0}, then {@code x.compareTo(z) < 0} must hold) and 28 * invertible (the sign of the result of x.compareTo(y) must be equal to the 29 * negation of the sign of the result of y.compareTo(x) for all combinations of 33 * result of x.compareTo(y) is zero, then the result of x.equals(y) should be 52 int compareTo(T another); method in interface:Comparable
|
H A D | Boolean.java | 123 public int compareTo(Boolean that) { method in class:Boolean
|
H A D | Byte.java | 108 public int compareTo(Byte object) { method in class:Byte
|
H A D | Enum.java | 149 public final int compareTo(E o) { method in class:Enum
|
H A D | Short.java | 107 public int compareTo(Short object) { method in class:Short
|
/libcore/luni/src/main/java/java/text/ |
H A D | CollationKey.java | 30 * Both the method {@code CollationKey.compareTo(CollationKey)} and the method 38 * {@code CollationKey.compareTo(CollationKey)} executes, it performs bitwise 65 * if( keys[i].compareTo( keys[j] ) > 0 ) 95 public abstract int compareTo(CollationKey value); method in class:CollationKey
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | OldAndroidEnumTest.java | 40 assertTrue(MyEnum.ZERO.compareTo(MyEnum.ONE) < 0); 42 assertTrue(MyEnum.TWO.compareTo(MyEnum.ONE) > 0); 43 assertTrue(MyEnum.FOUR.compareTo(MyEnum.ONE) > 0);
|
/libcore/luni/src/test/java/libcore/java/math/ |
H A D | OldBigDecimalScaleOperationsTest.java | 86 assertEquals(0, x1.compareTo(x2)); 87 assertEquals(0, x2.compareTo(x1)); 91 assertEquals(0, x1.compareTo(x2)); 92 assertEquals(0, x2.compareTo(x1)); 96 assertEquals(0, x1.compareTo(x2)); 97 assertEquals(0, x2.compareTo(x1));
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
H A D | MacThread.java | 52 if (sign1.compareTo(sign2) != 0 || sign1.compareTo(sign3) == 0 || 53 sign2.compareTo(sign3) == 0) {
|
/libcore/luni/src/main/java/libcore/icu/ |
H A D | CollationKeyICU.java | 34 @Override public int compareTo(CollationKey other) { method in class:CollationKeyICU 81 return compareTo((CollationKey) object) == 0;
|
H A D | TimeZones.java | 99 return lhs[OLSON_NAME].compareTo(rhs[OLSON_NAME]);
|
/libcore/luni/src/main/java/java/security/spec/ |
H A D | ECParameterSpec.java | 68 if (!(this.order.compareTo(BigInteger.ZERO) > 0)) {
|
H A D | EllipticCurve.java | 84 if (this.a.signum() < 0 || this.a.compareTo(p) >= 0) { 87 if (this.b.signum() < 0 || this.b.compareTo(p) >= 0) {
|
/libcore/luni/src/main/java/java/util/ |
H A D | ComparableTimSort.java | 26 * comparator that simply returns {@code ((Comparable)first).compareTo(Second)}. 228 if (pivot.compareTo(a[mid]) < 0) 286 if (((Comparable) a[runHi++]).compareTo(a[lo]) < 0) { // Descending 287 while(runHi < hi && ((Comparable) a[runHi]).compareTo(a[runHi - 1]) < 0) 291 while (runHi < hi && ((Comparable) a[runHi]).compareTo(a[runHi - 1]) >= 0) 475 if (key.compareTo(a[base + hint]) > 0) { 478 while (ofs < maxOfs && key.compareTo(a[base + hint + ofs]) > 0) { 493 while (ofs < maxOfs && key.compareTo(a[base + hint - ofs]) <= 0) { 518 if (key.compareTo(a[base + m]) > 0) 545 if (key.compareTo( [all...] |
H A D | TreeSet.java | 358 int compare = (c == null) ? ((Comparable<E>) start).compareTo(end) : c 378 ((Comparable<E>) end).compareTo(end); 396 ((Comparable<E>) start).compareTo(start);
|
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/ |
H A D | SHA1withDSA_SignatureImpl.java | 95 if (p.compareTo(BigInteger.valueOf(1)) != 1 || n < 512 || n > 1024 || (n & 077) != 0) { 101 if (x.signum() != 1 || x.compareTo(q) != -1) { 138 if (p.compareTo(BigInteger.valueOf(1)) != 1 || n1 < 512 || n1 > 1024 || (n1 & 077) != 0) { 226 if (k.compareTo(q) != -1) { 365 if (r.signum() != 1 || r.compareTo(q) != -1 || s.signum() != 1 366 || s.compareTo(q) != -1) { 377 if (v.compareTo(r) != 0) {
|
/libcore/luni/src/test/java/tests/api/javax/security/cert/ |
H A D | X509CertificateTest.java | 277 .compareTo(na_date) > 0); 279 .compareTo(nb_date) < 0); 282 date.compareTo(na_date) > 0); 285 date.compareTo(nb_date) < 0); 325 .compareTo(na_date) > 0); 327 .compareTo(nb_date) < 0); 330 date[i].compareTo(na_date) > 0); 333 + "was thrown", date[i].compareTo(nb_date) < 0);
|
/libcore/luni/src/main/java/java/sql/ |
H A D | Timestamp.java | 195 public int compareTo(Date theObject) throws ClassCastException { method in class:Timestamp 196 return this.compareTo((Timestamp) theObject); 216 public int compareTo(Timestamp theTimestamp) { method in class:Timestamp 217 int result = super.compareTo(theTimestamp);
|
/libcore/luni/src/main/java/org/apache/harmony/security/x501/ |
H A D | AttributeTypeAndValueComparator.java | 63 return kw1.compareTo(kw2);
|
/libcore/luni/src/test/java/tests/api/java/math/ |
H A D | BigIntegerTest.java | 94 assertTrue("Random number is negative", bi.compareTo(zero) >= 0); 96 bi.compareTo(twoToTheSeventy) < 0); 117 assertTrue("Random number one is negative", bi.compareTo(zero) >= 0); 119 bi.compareTo(twoToTheTen) < 0); 120 assertTrue("Random number two is negative", bi2.compareTo(zero) >= 0); 122 bi2.compareTo(twoToTheTen) < 0); 418 * java.math.BigInteger#compareTo(java.math.BigInteger) 421 assertTrue("Smaller number returned >= 0", one.compareTo(two) < 0); 422 assertTrue("Larger number returned >= 0", two.compareTo(one) > 0); 423 assertTrue("Equal numbers did not return 0", one.compareTo(on [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
H A D | DateTest.java | 167 * java.util.Date#compareTo(java.util.Date) 170 // Test for method int java.util.Date.compareTo(java.util.Date) 177 .compareTo(d1)); 179 .compareTo(d2)); 180 assertEquals("date1.compareTo(date2), where date1 > date2, did not result in 1", 181 1, d1.compareTo(d4)); 182 assertEquals("date1.compareTo(date2), where date1 < date2, did not result in -1", 183 -1, d1.compareTo(d3)); 186 d1.compareTo(null);
|
/libcore/luni/src/main/java/java/io/ |
H A D | ObjectStreamField.java | 127 public int compareTo(Object o) { method in class:ObjectStreamField 139 return this.getName().compareTo(f.getName());
|
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | OldTreeMapTest.java | 37 return -(((Comparable) o1).compareTo(o2)); 41 return (((Comparable) o1).compareTo(o2)) == 0; 58 return c1.compareTo(c2); 75 return o1.compareTo(o2); 271 return o1.compareTo(o2);
|
/libcore/luni/src/main/java/java/lang/reflect/ |
H A D | Method.java | 56 int comparison = a.name.compareTo(b.name); 65 comparison = aParameters[i].getName().compareTo(bParameters[i].getName()); 76 return a.getReturnType().getName().compareTo(b.getReturnType().getName());
|
/libcore/luni/src/main/java/java/security/cert/ |
H A D | X509CRLSelector.java | 422 if ((minCRL != null) && (crlNumber.compareTo(minCRL) < 0)) { 425 if ((maxCRL != null) && (crlNumber.compareTo(maxCRL) > 0)) {
|