Home
last modified time | relevance | path

Searched refs:compareTo (Results 1 – 25 of 341) sorted by relevance

12345678910>>...14

/external/jdiff/src/jdiff/
DAPIHandler.java77 if (localName.compareTo("api") == 0) { in startElement()
81 } else if (localName.compareTo("package") == 0) { in startElement()
85 } else if (localName.compareTo("class") == 0) { in startElement()
90 if (attributes.getValue("abstract").compareTo("true") == 0) in startElement()
93 } else if (localName.compareTo("interface") == 0) { in startElement()
98 if (attributes.getValue("abstract").compareTo("true") == 0) in startElement()
101 } else if (localName.compareTo("implements") == 0) { in startElement()
104 } else if (localName.compareTo("constructor") == 0) { in startElement()
108 } else if (localName.compareTo("method") == 0) { in startElement()
113 if (attributes.getValue("abstract").compareTo("true") == 0) in startElement()
[all …]
DOptions.java277 if (level.compareTo("public") != 0 && in validOptions()
278 level.compareTo("protected") != 0 && in validOptions()
279 level.compareTo("package") != 0 && in validOptions()
280 level.compareTo("private") != 0) { in validOptions()
293 if (level.compareTo("public") != 0 && in validOptions()
294 level.compareTo("protected") != 0 && in validOptions()
295 level.compareTo("package") != 0 && in validOptions()
296 level.compareTo("private") != 0) { in validOptions()
326 if (level.compareTo("all") != 0 && in validOptions()
327 level.compareTo("remove") != 0 && in validOptions()
[all …]
DMethodAPI.java86 public int compareTo(Object o) { in compareTo() method in MethodAPI
88 int comp = name_.compareTo(oMethod.name_); in compareTo()
91 comp = returnType_.compareTo(oMethod.returnType_); in compareTo()
107 comp = exceptions_.compareTo(oMethod.exceptions_); in compareTo()
110 comp = modifiers_.compareTo(oMethod.modifiers_); in compareTo()
113 comp = getSignature().compareTo(oMethod.getSignature()); in compareTo()
125 if (name_.compareTo(((MethodAPI)o).name_) == 0) in equals()
134 if (getSignature().compareTo(((MethodAPI)o).getSignature()) == 0) in equalSignatures()
DParamAPI.java29 public int compareTo(Object o) { in compareTo() method in ParamAPI
31 int comp = name_.compareTo(oParamAPI.name_); in compareTo()
34 comp = type_.compareTo(oParamAPI.type_); in compareTo()
44 if (name_.compareTo(((ParamAPI)o).name_) == 0) in equals()
51 if (type_.compareTo("void") == 0) in toString()
DConstructorAPI.java42 public int compareTo(Object o) { in compareTo() method in ConstructorAPI
44 int comp = type_.compareTo(constructorAPI.type_); in compareTo()
47 comp = exceptions_.compareTo(constructorAPI.exceptions_); in compareTo()
50 comp = modifiers_.compareTo(constructorAPI.modifiers_); in compareTo()
62 if (type_.compareTo(((ConstructorAPI)o).type_) == 0) in equals()
DFieldAPI.java70 public int compareTo(Object o) { in compareTo() method in FieldAPI
72 int comp = name_.compareTo(oFieldAPI.name_); in compareTo()
75 comp = type_.compareTo(oFieldAPI.type_); in compareTo()
87 comp = value_.compareTo(oFieldAPI.value_); in compareTo()
91 comp = modifiers_.compareTo(oFieldAPI.modifiers_); in compareTo()
103 if (name_.compareTo(((FieldAPI)o).name_) == 0) in equals()
DModifiers.java37 public int compareTo(Object o) { in compareTo() method in Modifiers
46 int comp = visibility.compareTo(oModifiers.visibility); in compareTo()
92 int comp = visibility.compareTo(newModifiers.visibility); in diff()
101 if (res.compareTo("") == 0) in diff()
DClassAPI.java64 public int compareTo(Object o) { in compareTo() method in ClassAPI
66 int comp = name_.compareTo(oClassAPI.name_); in compareTo()
73 comp = modifiers_.compareTo(oClassAPI.modifiers_); in compareTo()
86 if (name_.compareTo(((ClassAPI)o).name_) == 0) in equals()
DCommentsHandler.java62 if (localName.compareTo("comments") == 0) { in startElement()
74 if (filename2.compareTo(commentsName) != 0) { in startElement()
77 } else if (localName.compareTo("comment") == 0) { in startElement()
79 } else if (localName.compareTo("identifier") == 0) { in startElement()
85 } else if (localName.compareTo("text") == 0) { in startElement()
103 if (localName.compareTo("text") == 0) { in endElement()
134 currentText.compareTo(Comments.placeHolderText) != 0) { in addTextToComments()
/external/nist-sip/java/gov/nist/javax/sip/header/
DSIPObject.java102 if (fieldName.compareTo("stringRepresentation") == 0) { in equals()
105 if (fieldName.compareTo("indentation") == 0) { in equals()
112 if (fname.compareTo("int") == 0) { in equals()
115 } else if (fname.compareTo("short") == 0) { in equals()
118 } else if (fname.compareTo("char") == 0) { in equals()
121 } else if (fname.compareTo("long") == 0) { in equals()
124 } else if (fname.compareTo("boolean") == 0) { in equals()
127 } else if (fname.compareTo("double") == 0) { in equals()
130 } else if (fname.compareTo("float") == 0) { in equals()
193 if (fieldName.compareTo("stringRepresentation") == 0) { in match()
[all …]
/external/nist-sip/java/gov/nist/javax/sip/address/
DNetObject.java96 if (fieldName.compareTo("stringRepresentation") == 0) { in equals()
99 if (fieldName.compareTo("indentation") == 0) { in equals()
106 if (fname.compareTo("int") == 0) { in equals()
109 } else if (fname.compareTo("short") == 0) { in equals()
112 } else if (fname.compareTo("char") == 0) { in equals()
115 } else if (fname.compareTo("long") == 0) { in equals()
118 } else if (fname.compareTo("boolean") == 0) { in equals()
121 } else if (fname.compareTo("double") == 0) { in equals()
124 } else if (fname.compareTo("float") == 0) { in equals()
186 if (fieldName.compareTo("stringRepresentation") == 0) { in match()
[all …]
/external/nist-sip/java/gov/nist/core/
DGenericObject.java243 if (fname.compareTo("int") == 0) { in merge()
246 } else if (fname.compareTo("short") == 0) { in merge()
249 } else if (fname.compareTo("char") == 0) { in merge()
252 } else if (fname.compareTo("long") == 0) { in merge()
255 } else if (fname.compareTo("boolean") == 0) { in merge()
258 } else if (fname.compareTo("double") == 0) { in merge()
261 } else if (fname.compareTo("float") == 0) { in merge()
313 if (a.compareTo("}") == 0 || a.compareTo("]") == 0) { in sprint()
319 if (a.compareTo("{") == 0 || a.compareTo("[") == 0) { in sprint()
427 if (fieldName.compareTo("stringRepresentation") == 0) { in equals()
[all …]
/external/hamcrest/library/src/org/hamcrest/number/
DIsGreaterThan.java12 private final Comparable<T> compareTo; field in IsGreaterThan
14 public IsGreaterThan(Comparable<T> compareTo) { in IsGreaterThan() argument
15 this.compareTo = compareTo; in IsGreaterThan()
19 return compareTo.compareTo(item) < 0; in matchesSafely()
24 description.appendValue(compareTo); in describeTo()
/external/nist-sip/java/gov/nist/javax/sip/message/
DMessageObject.java73 if (fieldName.compareTo("stringRepresentation") == 0) { in debugDump()
77 if (fieldName.compareTo("indentation") == 0) { in debugDump()
87 if (fname.compareTo("int") == 0) { in debugDump()
90 } else if (fname.compareTo("short") == 0) { in debugDump()
93 } else if (fname.compareTo("char") == 0) { in debugDump()
96 } else if (fname.compareTo("long") == 0) { in debugDump()
99 } else if (fname.compareTo("boolean") == 0) { in debugDump()
102 } else if (fname.compareTo("double") == 0) { in debugDump()
105 } else if (fname.compareTo("float") == 0) { in debugDump()
/external/guava/guava-tests/test/com/google/common/math/
DBigIntegerMathTest.java91 assertTrue(ZERO.setBit(result).compareTo(x) <= 0); in testLog2Floor()
92 assertTrue(ZERO.setBit(result + 1).compareTo(x) > 0); in testLog2Floor()
101 assertTrue(ZERO.setBit(result).compareTo(x) >= 0); in testLog2Ceiling()
102 assertTrue(result == 0 || ZERO.setBit(result - 1).compareTo(x) < 0); in testLog2Ceiling()
126 assertTrue(ZERO.setBit(2 * result + 1).compareTo(x2) > 0); in testLog2HalfUp()
128 assertTrue(result == 0 || ZERO.setBit(2 * result - 1).compareTo(x2) <= 0); in testLog2HalfUp()
137 assertTrue(ZERO.setBit(2 * result + 1).compareTo(x2) >= 0); in testLog2HalfDown()
139 assertTrue(result == 0 || ZERO.setBit(2 * result - 1).compareTo(x2) < 0); in testLog2HalfDown()
178 assertTrue(TEN.pow(result).compareTo(x) <= 0); in testLog10Floor()
179 assertTrue(TEN.pow(result + 1).compareTo(x) > 0); in testLog10Floor()
[all …]
DDoubleMathTest.java60 assertTrue(BigIntegerMath.factorial(DoubleMath.MAX_FACTORIAL).compareTo(MAX_DOUBLE_VALUE) <= 0); in testConstantsMaxFactorial()
62 BigIntegerMath.factorial(DoubleMath.MAX_FACTORIAL + 1).compareTo(MAX_DOUBLE_VALUE) > 0); in testConstantsMaxFactorial()
76 boolean isInBounds = expected.compareTo(MAX_INT_AS_BIG_DECIMAL) <= 0 in testRoundIntegralDoubleToInt()
77 & expected.compareTo(MIN_INT_AS_BIG_DECIMAL) >= 0; in testRoundIntegralDoubleToInt()
93 boolean isInBounds = expected.compareTo(MAX_INT_AS_BIG_DECIMAL) <= 0 in testRoundFractionalDoubleToInt()
94 & expected.compareTo(MIN_INT_AS_BIG_DECIMAL) >= 0; in testRoundFractionalDoubleToInt()
109 boolean isInBounds = expected.compareTo(MAX_INT_AS_BIG_DECIMAL) <= 0 in testRoundExactIntegralDoubleToInt()
110 & expected.compareTo(MIN_INT_AS_BIG_DECIMAL) >= 0; in testRoundExactIntegralDoubleToInt()
156 boolean isInBounds = expected.compareTo(MAX_LONG_AS_BIG_DECIMAL) <= 0 in testRoundIntegralDoubleToLong()
157 & expected.compareTo(MIN_LONG_AS_BIG_DECIMAL) >= 0; in testRoundIntegralDoubleToLong()
[all …]
/external/javasqlite/src/main/java/SQLite/
DShell.java311 if (cmd.compareTo(".dump") == 0) { in do_meta()
315 if (cmd.compareTo(".echo") == 0) { in do_meta()
322 if (cmd.compareTo(".exit") == 0) { in do_meta()
329 if (cmd.compareTo(".header") == 0) { in do_meta()
336 if (cmd.compareTo(".help") == 0) { in do_meta()
352 if (cmd.compareTo(".mode") == 0) { in do_meta()
354 if (args[0].compareTo("line") == 0) { in do_meta()
356 } else if (args[0].compareTo("column") == 0) { in do_meta()
358 } else if (args[0].compareTo("list") == 0) { in do_meta()
360 } else if (args[0].compareTo("html") == 0) { in do_meta()
[all …]
/external/proguard/src/proguard/classfile/editor/
DComparableConstant.java91 public int compareTo(Object other) in compareTo() method in ComparableConstant
158 …result = stringConstant.getString(clazz).compareTo(((StringConstant)otherConstant).getString(clazz…
163 result = utf8Constant.getString().compareTo(((Utf8Constant)otherConstant).getString());
177 .compareTo
193 .compareTo
204 .compareTo
212 … result = classConstant.getName(clazz).compareTo(((ClassConstant)otherConstant).getName(clazz));
219 .compareTo
228 .compareTo
241 this.compareTo(other) == 0;
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/
DX509CertificateTest.java171 date.compareTo(na_date) > 0); in testCheckValidity1()
173 date.compareTo(nb_date) < 0); in testCheckValidity1()
176 date.compareTo(na_date) > 0); in testCheckValidity1()
179 date.compareTo(nb_date) < 0); in testCheckValidity1()
204 date[i].compareTo(na_date) > 0); in testCheckValidity2()
206 date[i].compareTo(nb_date) < 0); in testCheckValidity2()
209 date[i].compareTo(na_date) > 0); in testCheckValidity2()
212 + "was thrown", date[i].compareTo(nb_date) < 0); in testCheckValidity2()
/external/dexmaker/src/dx/java/com/android/dx/dex/code/
DCatchTable.java64 public int compareTo(CatchTable other) { in compareTo() method in CatchTable
77 int compare = thisEntry.compareTo(otherEntry); in compareTo()
142 return (compareTo((Entry) other) == 0); in equals()
149 public int compareTo(Entry other) { in compareTo() method in CatchTable.Entry
162 return handlers.compareTo(other.handlers); in compareTo()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/base/reference/
DBaseFieldReference.java60 public int compareTo(@Nonnull FieldReference o) { in compareTo() method in BaseFieldReference
61 int res = getDefiningClass().compareTo(o.getDefiningClass()); in compareTo()
63 res = getName().compareTo(o.getName()); in compareTo()
65 return getType().compareTo(o.getType()); in compareTo()
DBaseMethodReference.java64 public int compareTo(@Nonnull MethodReference o) { in compareTo() method in BaseMethodReference
65 int res = getDefiningClass().compareTo(o.getDefiningClass()); in compareTo()
67 res = getName().compareTo(o.getName()); in compareTo()
69 res = getReturnType().compareTo(o.getReturnType()); in compareTo()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/base/
DBaseAnnotationElement.java57 public int compareTo(AnnotationElement o) { in compareTo() method in BaseAnnotationElement
58 int res = getName().compareTo(o.getName()); in compareTo()
60 return getValue().compareTo(o.getValue()); in compareTo()
66 return element1.getName().compareTo(element2.getName());
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/
DLabelMethodItem.java52 public int compareTo(MethodItem methodItem) { in compareTo() method in LabelMethodItem
53 int result = super.compareTo(methodItem); in compareTo()
57 result = labelPrefix.compareTo(((LabelMethodItem)methodItem).labelPrefix); in compareTo()
72 return this.compareTo((MethodItem)o) == 0; in equals()
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
DTimestampTest.java605 assertTrue(theTimestamp.compareTo(theTest) > 0); in testCompareToTimestamp()
606 assertTrue(theTimestamp.compareTo(theTest2) < 0); in testCompareToTimestamp()
607 assertEquals(0, theTimestamp.compareTo(theTimestamp2)); in testCompareToTimestamp()
615 assertEquals(1, t1.compareTo(t2)); in testCompareToTimestamp()
616 assertEquals(-1, t2.compareTo(t1)); in testCompareToTimestamp()
620 assertEquals(1, t1.compareTo(t2)); in testCompareToTimestamp()
621 assertEquals(-1, t2.compareTo(t1)); in testCompareToTimestamp()
625 assertEquals(0, t1.compareTo(t2)); in testCompareToTimestamp()
626 assertEquals(0, t2.compareTo(t1)); in testCompareToTimestamp()
641 assertTrue(theTimestamp.compareTo(theTest) > 0);
[all …]

12345678910>>...14