Home
last modified time | relevance | path

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

12345678910>>...43

/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()
109 } else if (localName.compareTo("method") == 0) { in startElement()
114 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()
DFieldAPI.java70 public int compareTo(FieldAPI 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()
DConstructorAPI.java57 return c1 == null ? (c2 == null ? 0 : -1) : (c2 == null ? 1 : c1.compareTo(c2)); in compareNullIsLeast()
61 public int compareTo(ConstructorAPI o) { in compareTo() method in ConstructorAPI
69 comp = exceptions_.compareTo(constructorAPI.exceptions_); in compareTo()
72 comp = modifiers_.compareTo(constructorAPI.modifiers_); in compareTo()
96 if (getSignature().compareTo(((MethodAPI)o).getSignature()) == 0) in equalSignatures()
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.java100 if (fieldName.compareTo("stringRepresentation") == 0) { in equals()
103 if (fieldName.compareTo("indentation") == 0) { in equals()
110 if (fname.compareTo("int") == 0) { in equals()
113 } else if (fname.compareTo("short") == 0) { in equals()
116 } else if (fname.compareTo("char") == 0) { in equals()
119 } else if (fname.compareTo("long") == 0) { in equals()
122 } else if (fname.compareTo("boolean") == 0) { in equals()
125 } else if (fname.compareTo("double") == 0) { in equals()
128 } else if (fname.compareTo("float") == 0) { in equals()
190 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/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/guava/android/guava-tests/test/com/google/common/math/
DBigIntegerMathTest.java63 assertTrue(result.compareTo(x) >= 0); in testCeilingPowerOfTwo()
64 assertTrue(result.compareTo(x.add(x)) < 0); in testCeilingPowerOfTwo()
72 assertTrue(result.compareTo(x) <= 0);
73 assertTrue(result.add(result).compareTo(x) > 0);
153 assertTrue(ZERO.setBit(result).compareTo(x) <= 0); in testLog2Floor()
154 assertTrue(ZERO.setBit(result + 1).compareTo(x) > 0); in testLog2Floor()
163 assertTrue(ZERO.setBit(result).compareTo(x) >= 0); in testLog2Ceiling()
164 assertTrue(result == 0 || ZERO.setBit(result - 1).compareTo(x) < 0); in testLog2Ceiling()
188 assertTrue(ZERO.setBit(2 * result + 1).compareTo(x2) > 0); in testLog2HalfUp()
190 assertTrue(result == 0 || ZERO.setBit(2 * result - 1).compareTo(x2) <= 0); in testLog2HalfUp()
[all …]
/external/guava/guava-tests/test/com/google/common/math/
DBigIntegerMathTest.java63 assertTrue(result.compareTo(x) >= 0); in testCeilingPowerOfTwo()
64 assertTrue(result.compareTo(x.add(x)) < 0); in testCeilingPowerOfTwo()
72 assertTrue(result.compareTo(x) <= 0);
73 assertTrue(result.add(result).compareTo(x) > 0);
153 assertTrue(ZERO.setBit(result).compareTo(x) <= 0); in testLog2Floor()
154 assertTrue(ZERO.setBit(result + 1).compareTo(x) > 0); in testLog2Floor()
163 assertTrue(ZERO.setBit(result).compareTo(x) >= 0); in testLog2Ceiling()
164 assertTrue(result == 0 || ZERO.setBit(result - 1).compareTo(x) < 0); in testLog2Ceiling()
188 assertTrue(ZERO.setBit(2 * result + 1).compareTo(x2) > 0); in testLog2HalfUp()
190 assertTrue(result == 0 || ZERO.setBit(2 * result - 1).compareTo(x2) <= 0); in testLog2HalfUp()
[all …]
/external/opencensus-java/api/src/test/java/io/opencensus/common/
DDurationTest.java117 assertThat(Duration.create(0, 0).compareTo(Duration.create(0, 0))).isEqualTo(0); in duration_CompareLength()
118 assertThat(Duration.create(24, 42).compareTo(Duration.create(24, 42))).isEqualTo(0); in duration_CompareLength()
119 assertThat(Duration.create(-24, -42).compareTo(Duration.create(-24, -42))).isEqualTo(0); in duration_CompareLength()
120 assertThat(Duration.create(25, 42).compareTo(Duration.create(24, 42))).isEqualTo(1); in duration_CompareLength()
121 assertThat(Duration.create(24, 45).compareTo(Duration.create(24, 42))).isEqualTo(1); in duration_CompareLength()
122 assertThat(Duration.create(24, 42).compareTo(Duration.create(25, 42))).isEqualTo(-1); in duration_CompareLength()
123 assertThat(Duration.create(24, 42).compareTo(Duration.create(24, 45))).isEqualTo(-1); in duration_CompareLength()
124 assertThat(Duration.create(-24, -45).compareTo(Duration.create(-24, -42))).isEqualTo(-1); in duration_CompareLength()
125 assertThat(Duration.create(-24, -42).compareTo(Duration.create(-25, -42))).isEqualTo(1); in duration_CompareLength()
126 assertThat(Duration.create(24, 42).compareTo(Duration.create(-24, -42))).isEqualTo(1); in duration_CompareLength()
DTimestampTest.java192 assertThat(Timestamp.create(0, 0).compareTo(Timestamp.create(0, 0))).isEqualTo(0); in timestamp_CompareTo()
193 assertThat(Timestamp.create(24, 42).compareTo(Timestamp.create(24, 42))).isEqualTo(0); in timestamp_CompareTo()
194 assertThat(Timestamp.create(-24, 42).compareTo(Timestamp.create(-24, 42))).isEqualTo(0); in timestamp_CompareTo()
195 assertThat(Timestamp.create(25, 42).compareTo(Timestamp.create(24, 42))).isEqualTo(1); in timestamp_CompareTo()
196 assertThat(Timestamp.create(24, 45).compareTo(Timestamp.create(24, 42))).isEqualTo(1); in timestamp_CompareTo()
197 assertThat(Timestamp.create(24, 42).compareTo(Timestamp.create(25, 42))).isEqualTo(-1); in timestamp_CompareTo()
198 assertThat(Timestamp.create(24, 42).compareTo(Timestamp.create(24, 45))).isEqualTo(-1); in timestamp_CompareTo()
199 assertThat(Timestamp.create(-25, 42).compareTo(Timestamp.create(-24, 42))).isEqualTo(-1); in timestamp_CompareTo()
200 assertThat(Timestamp.create(-24, 45).compareTo(Timestamp.create(-24, 42))).isEqualTo(1); in timestamp_CompareTo()
201 assertThat(Timestamp.create(-24, 42).compareTo(Timestamp.create(-25, 42))).isEqualTo(1); in timestamp_CompareTo()
[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());
211 … result = classConstant.getName(clazz).compareTo(((ClassConstant)otherConstant).getName(clazz));
218 .compareTo
239 this.compareTo(other) == 0;
259 (comparison = string1a.compareTo(string2a)) != 0 ? comparison :
260 string1b.compareTo(string2b);
272 (comparison = string1a.compareTo(string2a)) != 0 ? comparison :
273 (comparison = string1b.compareTo(string2b)) != 0 ? comparison :
[all …]
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/
DVersionTest.java18 assertEquals(263, version.compareTo(versionTwo)); in testCompareToOne()
27 assertEquals(0, version.compareTo(versionTwo)); in testCompareToReturningZero()
35 assertTrue(version.compareTo(versionTwo) < 0); in testCreatesVersionTaking6ArgumentsAndCallsCompareTo()
44 assertTrue(version.compareTo(versionTwo) > 0);
52 assertTrue(version.compareTo(versionTwo) < 0); in testCompareToAndCreatesVersionTaking6ArgumentsAndUnknownVersion()
/external/mockito/src/test/java/org/mockito/internal/matchers/
DComparableMatchersTest.java47 private void test(CompareTo<String> compareTo, boolean lower, boolean higher, in test() argument
50 assertEquals(lower, compareTo.matches("a")); in test()
51 assertEquals(equals, compareTo.matches("b")); in test()
52 assertEquals(higher, compareTo.matches("c")); in test()
54 assertEquals(name + "(b)", compareTo.toString()); in test()
/external/mockito/src/test/java/org/mockitousage/bugs/
DShouldMocksCompareToBeConsistentWithEqualsTest.java54 when(mock.compareTo(any(Date.class))).thenReturn(10); in should_allow_stubbing_and_verifying_compare_to()
57 mock.compareTo(new Date()); in should_allow_stubbing_and_verifying_compare_to()
60 assertEquals(10, mock.compareTo(new Date())); in should_allow_stubbing_and_verifying_compare_to()
61 verify(mock, atLeastOnce()).compareTo(any(Date.class)); in should_allow_stubbing_and_verifying_compare_to()
71 assertEquals(1, mock.compareTo(new Date())); in should_reset_not_remove_default_stubbing()
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/test/
DModifierKeyCombinationTest.java131 assertTrue("", combination1.compareTo(combination2) < 0); in testCompareToForOnKeys()
140 assertTrue("", combination1.compareTo(combination2) < 0); in testCompareToForCloseOnKeys()
149 assertTrue("", combination1.compareTo(combination2) < 0); in testCompareToForComplexOnKeys()
157 assertTrue("", combination1.compareTo(combination2) > 0); in testCompareToForLeftAndRightVariants()
158 assertTrue("", combination1.compareTo(combination3) < 0); in testCompareToForLeftAndRightVariants()
159 assertTrue("", combination2.compareTo(combination3) < 0); in testCompareToForLeftAndRightVariants()
167 assertTrue("", combination1.compareTo(combination2) == 0); in testCompareToForEqualCombinations()
176 assertTrue("", combination1.compareTo(combination2) < 0); in testCompareToWithDontCares()
184 assertTrue("", combination1.compareTo(combination2) > 0); in testCompareToWithCloseDontCares()
195 assertTrue("", combination1.compareTo(combination2) < 0); in testCompareToWithComplexDontCares()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DVersionInfoTest.java99 if (v1.compareTo(v2) == 0) { in TestCompare()
107 if (v1.compareTo(v2) == 0) { in TestCompare()
117 if (v1.compareTo(v2) != 0) { in TestCompare()
125 if (v1.compareTo(v2) != 0) { in TestCompare()
133 if (v1.compareTo(v2) >= 0) { in TestCompare()
137 if (v2.compareTo(v1) <= 0) { in TestCompare()
149 assertTrue(small + " < " + large, small.compareTo(large) < 0); in TestCompareLarge()
153 assertTrue(small + " < " + large, small.compareTo(large) < 0); in TestCompareLarge()
216 if (v1.compareTo(v2) == 0) { in TestComparable()
224 if (v1.compareTo(v2) != 0) { in TestComparable()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DVersionInfoTest.java96 if (v1.compareTo(v2) == 0) { in TestCompare()
104 if (v1.compareTo(v2) == 0) { in TestCompare()
114 if (v1.compareTo(v2) != 0) { in TestCompare()
122 if (v1.compareTo(v2) != 0) { in TestCompare()
130 if (v1.compareTo(v2) >= 0) { in TestCompare()
134 if (v2.compareTo(v1) <= 0) { in TestCompare()
146 assertTrue(small + " < " + large, small.compareTo(large) < 0); in TestCompareLarge()
150 assertTrue(small + " < " + large, small.compareTo(large) < 0); in TestCompareLarge()
213 if (v1.compareTo(v2) == 0) { in TestComparable()
221 if (v1.compareTo(v2) != 0) { in TestComparable()
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
DTimestampTest.java594 assertTrue(theTimestamp.compareTo(theTest) > 0); in testCompareToTimestamp()
595 assertTrue(theTimestamp.compareTo(theTest2) < 0); in testCompareToTimestamp()
596 assertEquals(0, theTimestamp.compareTo(theTimestamp2)); in testCompareToTimestamp()
604 assertEquals(-1, t1.compareTo(t2)); in testCompareToTimestamp()
605 assertEquals(1, t2.compareTo(t1)); in testCompareToTimestamp()
609 assertEquals(1, t1.compareTo(t2)); in testCompareToTimestamp()
610 assertEquals(-1, t2.compareTo(t1)); in testCompareToTimestamp()
614 assertEquals(0, t1.compareTo(t2)); in testCompareToTimestamp()
615 assertEquals(0, t2.compareTo(t1)); in testCompareToTimestamp()
630 assertTrue(theTimestamp.compareTo(theTest) > 0);
[all …]
/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());

12345678910>>...43