Home
last modified time | relevance | path

Searched refs:compareTo (Results 1 – 25 of 344) 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()
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()
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()
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/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/proguard/src/proguard/classfile/editor/
DComparableConstant.java88 public int compareTo(Object other) in compareTo() method in ComparableConstant
126 …result = new Integer(integerConstant.getValue()).compareTo(new Integer(((IntegerConstant)otherCons… in visitIntegerConstant()
132 …result = new Long(longConstant.getValue()).compareTo(new Long(((LongConstant)otherConstant).getVal… in visitLongConstant()
138 …result = new Float(floatConstant.getValue()).compareTo(new Float(((FloatConstant)otherConstant).ge… in visitFloatConstant()
144 …result = new Double(doubleConstant.getValue()).compareTo(new Double(((DoubleConstant)otherConstant… in visitDoubleConstant()
149 …result = stringConstant.getString(clazz).compareTo(((StringConstant)otherConstant).getString(clazz… in visitStringConstant()
154 result = utf8Constant.getString().compareTo(((Utf8Constant)otherConstant).getString()); in visitUtf8Constant()
163 .compareTo in visitAnyRefConstant()
171 … result = classConstant.getName(clazz).compareTo(((ClassConstant)otherConstant).getName(clazz)); in visitClassConstant()
179 .compareTo in visitNameAndTypeConstant()
[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/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/
DX509CertificateTest.java172 date.compareTo(na_date) > 0); in testCheckValidity1()
174 date.compareTo(nb_date) < 0); in testCheckValidity1()
177 date.compareTo(na_date) > 0); in testCheckValidity1()
180 date.compareTo(nb_date) < 0); in testCheckValidity1()
205 date[i].compareTo(na_date) > 0); in testCheckValidity2()
207 date[i].compareTo(nb_date) < 0); in testCheckValidity2()
210 date[i].compareTo(na_date) > 0); in testCheckValidity2()
213 + "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()
DCatchHandlerList.java136 public int compareTo(CatchHandlerList other) { in compareTo() method in CatchHandlerList
149 int compare = thisEntry.compareTo(otherEntry); in compareTo()
203 return (compareTo((Entry) other) == 0); in equals()
210 public int compareTo(Entry other) { in compareTo() method in CatchHandlerList.Entry
217 return exceptionType.compareTo(other.exceptionType); in compareTo()
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/
DLabelMethodItem.java49 public int compareTo(MethodItem methodItem) { in compareTo() method in LabelMethodItem
50 int result = super.compareTo(methodItem); in compareTo()
54 result = labelPrefix.compareTo(((LabelMethodItem)methodItem).labelPrefix); in compareTo()
69 return this.compareTo((MethodItem)o) == 0; in equals()
DMethodItem.java49 public int compareTo(MethodItem methodItem) { in compareTo() method in MethodItem
50 int result = ((Integer) codeAddress).compareTo(methodItem.codeAddress); in compareTo()
53 return ((Double)getSortOrder()).compareTo(methodItem.getSortOrder()); in compareTo()
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
DTimestampTest.java606 assertTrue(theTimestamp.compareTo(theTest) > 0); in testCompareToTimestamp()
607 assertTrue(theTimestamp.compareTo(theTest2) < 0); in testCompareToTimestamp()
608 assertEquals(0, theTimestamp.compareTo(theTimestamp2)); in testCompareToTimestamp()
616 assertEquals(1, t1.compareTo(t2)); in testCompareToTimestamp()
617 assertEquals(-1, t2.compareTo(t1)); in testCompareToTimestamp()
621 assertEquals(1, t1.compareTo(t2)); in testCompareToTimestamp()
622 assertEquals(-1, t2.compareTo(t1)); in testCompareToTimestamp()
626 assertEquals(0, t1.compareTo(t2)); in testCompareToTimestamp()
627 assertEquals(0, t2.compareTo(t1)); in testCompareToTimestamp()
642 assertTrue(theTimestamp.compareTo(theTest) > 0);
[all …]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/
DByteTest.java361 assertTrue(max.compareTo(max) == 0); in test_compareToLjava_lang_Byte()
362 assertTrue(min.compareTo(min) == 0); in test_compareToLjava_lang_Byte()
363 assertTrue(zero.compareTo(zero) == 0); in test_compareToLjava_lang_Byte()
365 assertTrue(max.compareTo(zero) > 0); in test_compareToLjava_lang_Byte()
366 assertTrue(max.compareTo(min) > 0); in test_compareToLjava_lang_Byte()
368 assertTrue(zero.compareTo(max) < 0); in test_compareToLjava_lang_Byte()
369 assertTrue(zero.compareTo(min) > 0); in test_compareToLjava_lang_Byte()
371 assertTrue(min.compareTo(zero) < 0); in test_compareToLjava_lang_Byte()
372 assertTrue(min.compareTo(max) < 0); in test_compareToLjava_lang_Byte()
375 min.compareTo(null); in test_compareToLjava_lang_Byte()
[all …]
/external/smali/dexlib/src/main/java/org/jf/dexlib/
DAnnotationDirectoryItem.java306 public int compareTo(AnnotationDirectoryItem o) { in compareTo() method in AnnotationDirectoryItem
313 return parentType.compareTo(otherParentType); in compareTo()
323 return classAnnotations.compareTo(o.classAnnotations); in compareTo()
514 return (this.compareTo(other) == 0); in equals()
526 public int compareTo(Convertible<FieldIdItem> other) { in compareTo() method in AnnotationDirectoryItem.FieldAnnotation
527 return field.compareTo(other.convert()); in compareTo()
535 return compareTo((FieldAnnotation)o) == 0; in equals()
557 public int compareTo(Convertible<MethodIdItem> other) { in compareTo() method in AnnotationDirectoryItem.MethodAnnotation
558 return method.compareTo(other.convert()); in compareTo()
566 return compareTo((MethodAnnotation)o) == 0; in equals()
[all …]

12345678910>>...14