HomeSort by relevance Sort by last modified time
    Searched refs:compareTo (Results 1 - 25 of 745) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /dalvik/tests/069-field-type/src2/
Blah.java 6 public int compareTo(Object another) {
7 System.out.println("In compareTo");
  /libcore/luni/src/main/java/java/lang/
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);
  /sdk/sdkmanager/libs/sdklib/tests/src/com/android/sdklib/
LayoutlibVersionTest.java 35 assertTrue(new LayoutlibVersion(1, 1).compareTo(new LayoutlibVersion(1, 1)) == 0);
36 assertTrue(new LayoutlibVersion(1, 2).compareTo(new LayoutlibVersion(1, 1)) > 0);
37 assertTrue(new LayoutlibVersion(1, 1).compareTo(new LayoutlibVersion(1, 2)) < 0);
38 assertTrue(new LayoutlibVersion(2, 2).compareTo(new LayoutlibVersion(1, 3)) > 0);
41 assertTrue(new LayoutlibVersion(0, 1).compareTo(new LayoutlibVersion(0, 2)) < 0);
42 assertTrue(new LayoutlibVersion(0, 1).compareTo(new LayoutlibVersion(1, 2)) < 0);
43 assertTrue(new LayoutlibVersion(0, 3).compareTo(new LayoutlibVersion(1, 2)) < 0);
44 assertTrue(new LayoutlibVersion(1, 2).compareTo(new LayoutlibVersion(0, 3)) > 0);
47 assertTrue(new LayoutlibVersion(2, 0).compareTo(new LayoutlibVersion(2, 2)) == 0);
48 assertTrue(new LayoutlibVersion(2, 2).compareTo(new LayoutlibVersion(2, 0)) == 0)
    [all...]
  /external/jdiff/src/jdiff/
ParamAPI.java 10 * The method used for Collection comparison (compareTo) must make its
29 public int compareTo(Object o) {
31 int comp = name_.compareTo(oParamAPI.name_);
34 comp = type_.compareTo(oParamAPI.type_);
44 if (name_.compareTo(((ParamAPI)o).name_) == 0)
51 if (type_.compareTo("void") == 0)
APIHandler.java 77 if (localName.compareTo("api") == 0) {
81 } else if (localName.compareTo("package") == 0) {
85 } else if (localName.compareTo("class") == 0) {
90 if (attributes.getValue("abstract").compareTo("true") == 0)
93 } else if (localName.compareTo("interface") == 0) {
98 if (attributes.getValue("abstract").compareTo("true") == 0)
101 } else if (localName.compareTo("implements") == 0) {
104 } else if (localName.compareTo("constructor") == 0) {
108 } else if (localName.compareTo("method") == 0) {
113 if (attributes.getValue("abstract").compareTo("true") == 0
    [all...]
ConstructorAPI.java 10 * The method used for Collection comparison (compareTo) must make its
42 public int compareTo(Object o) {
44 int comp = type_.compareTo(constructorAPI.type_);
47 comp = exceptions_.compareTo(constructorAPI.exceptions_);
50 comp = modifiers_.compareTo(constructorAPI.modifiers_);
62 if (type_.compareTo(((ConstructorAPI)o).type_) == 0)
PackageAPI.java 10 * The method used for Collection comparison (compareTo) must make its
34 public int compareTo(Object o) {
38 return name_.compareTo(oPackageAPI.name_);
45 if (name_.compareTo(((PackageAPI)o).name_) == 0)
SingleComment.java 31 public int compareTo(Object o) {
32 return id_.compareTo(((SingleComment)o).id_);
DiffOutput.java 43 public int compareTo(Object o) {
45 int comp = pkgName_.compareTo(oDiffOutput.pkgName_);
49 // if (id_.compareTo("package") == 0)
51 return id_.compareTo(oDiffOutput.id_);
  /cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_interface/d/
T_invoke_interface_1.java 22 return c.compareTo(o);
  /cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_interface_range/d/
T_invoke_interface_range_1.java 22 return c.compareTo(o);
  /external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/
MethodItem.java 49 public int compareTo(MethodItem methodItem) {
50 int result = ((Integer) codeAddress).compareTo(methodItem.codeAddress);
53 return ((Double)getSortOrder()).compareTo(methodItem.getSortOrder());
  /sdk/ide_common/src/com/android/ide/common/resources/configuration/
ResourceQualifier.java 89 * the given <var>compareTo</var> comparable.
90 * @param compareTo The {@link ResourceQualifier} to compare to. Can be null, in which
95 public boolean isBetterMatchThan(ResourceQualifier compareTo, ResourceQualifier reference) {
131 public final int compareTo(ResourceQualifier o) {
132 return toString().compareTo(o.toString());
  /dalvik/dx/src/com/android/dx/util/
Uint.java 29 public int compareTo(Uint uint) {
  /external/apache-harmony/luni/src/test/resources/org/apache/harmony/luni/tests/
ObjectStreamClassTest.jar 
  /external/dexmaker/src/dx/java/com/android/dx/util/
Uint.java 29 public int compareTo(Uint uint) {
  /libcore/luni/src/main/java/java/text/
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] ) &gt; 0 )
95 public abstract int compareTo(CollationKey value);
  /cts/tools/signature-tools/src/signature/io/html/
ClassByNameComparator.java 29 return a.getFrom().getName().compareTo(b.getFrom().getName());
31 return a.getTo().getName().compareTo(b.getTo().getName());
  /dalvik/dexgen/src/com/android/dexgen/rop/cst/
Constant.java 48 public final int compareTo(Constant other) {
53 return clazz.getName().compareTo(otherClazz.getName());
  /dalvik/dx/src/com/android/dx/rop/cst/
Constant.java 48 public final int compareTo(Constant other) {
53 return clazz.getName().compareTo(otherClazz.getName());
  /external/dexmaker/src/dx/java/com/android/dx/rop/cst/
Constant.java 48 public final int compareTo(Constant other) {
53 return clazz.getName().compareTo(otherClazz.getName());
  /external/nist-sip/java/gov/nist/javax/sip/address/
NetObject.java 96 if (fieldName.compareTo("stringRepresentation") == 0) {
99 if (fieldName.compareTo("indentation") == 0) {
106 if (fname.compareTo("int") == 0) {
109 } else if (fname.compareTo("short") == 0) {
112 } else if (fname.compareTo("char") == 0) {
115 } else if (fname.compareTo("long") == 0) {
118 } else if (fname.compareTo("boolean") == 0) {
121 } else if (fname.compareTo("double") == 0) {
124 } else if (fname.compareTo("float") == 0) {
186 if (fieldName.compareTo("stringRepresentation") == 0)
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/header/
SIPObject.java 102 if (fieldName.compareTo("stringRepresentation") == 0) {
105 if (fieldName.compareTo("indentation") == 0) {
112 if (fname.compareTo("int") == 0) {
115 } else if (fname.compareTo("short") == 0) {
118 } else if (fname.compareTo("char") == 0) {
121 } else if (fname.compareTo("long") == 0) {
124 } else if (fname.compareTo("boolean") == 0) {
127 } else if (fname.compareTo("double") == 0) {
130 } else if (fname.compareTo("float") == 0) {
193 if (fieldName.compareTo("stringRepresentation") == 0)
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/message/
MessageObject.java 73 if (fieldName.compareTo("stringRepresentation") == 0) {
77 if (fieldName.compareTo("indentation") == 0) {
87 if (fname.compareTo("int") == 0) {
90 } else if (fname.compareTo("short") == 0) {
93 } else if (fname.compareTo("char") == 0) {
96 } else if (fname.compareTo("long") == 0) {
99 } else if (fname.compareTo("boolean") == 0) {
102 } else if (fname.compareTo("double") == 0) {
105 } else if (fname.compareTo("float") == 0) {
  /frameworks/support/volley/tests/src/com/android/volley/
RequestTest.java 44 assertTrue(low.compareTo(high) > 0);
45 assertTrue(high.compareTo(low) < 0);
46 assertTrue(low.compareTo(low2) < 0);
47 assertTrue(low.compareTo(immediate) > 0);
48 assertTrue(immediate.compareTo(high) < 0);

Completed in 855 milliseconds

1 2 3 4 5 6 7 8 91011>>