Home
last modified time | relevance | path

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

/thrift-3.4.0/lib/javame/src/org/apache/thrift/
DTBaseHelper.java27 public static int compareTo(boolean a, boolean b) { in compareTo() method in TBaseHelper
32 public static int compareTo(Boolean a, Boolean b) { in compareTo() method in TBaseHelper
37 public static int compareTo(Boolean a, boolean b) { in compareTo() method in TBaseHelper
47 public static int compareTo(byte a, byte b) { in compareTo() method in TBaseHelper
57 public static int compareTo(short a, short b) { in compareTo() method in TBaseHelper
67 public static int compareTo(int a, int b) { in compareTo() method in TBaseHelper
77 public static int compareTo(long a, long b) { in compareTo() method in TBaseHelper
87 public static int compareTo(double a, double b) { in compareTo() method in TBaseHelper
97 public static int compareTo(String a, String b) { in compareTo() method in TBaseHelper
98 return a.compareTo(b); in compareTo()
[all …]
DTBase.java44 public int compareTo(Object other); in compareTo() method
/thrift-3.4.0/lib/java/src/main/java/org/apache/thrift/
DTBaseHelper.java41 public static int compareTo(Object o1, Object o2) { in compareTo() method in TBaseHelper
43 return compareTo((Comparable) o1, (Comparable) o2); in compareTo()
45 return compareTo((List) o1, (List) o2); in compareTo()
47 return compareTo((Set) o1, (Set) o2); in compareTo()
49 return compareTo((Map) o1, (Map) o2); in compareTo()
51 return compareTo((byte[]) o1, (byte[]) o2); in compareTo()
57 public static int compareTo(boolean a, boolean b) { in compareTo() method in TBaseHelper
61 public static int compareTo(byte a, byte b) { in compareTo() method in TBaseHelper
65 public static int compareTo(short a, short b) { in compareTo() method in TBaseHelper
69 public static int compareTo(int a, int b) { in compareTo() method in TBaseHelper
[all …]
/thrift-3.4.0/lib/java/src/test/java/org/apache/thrift/
DTestTBaseHelper.java38 assertTrue(TBaseHelper.compareTo(new byte[] {'a', 'b'}, new byte[] {'a', 'c'}) < 0); in testByteArrayComparison()
46 assertEquals(0, TBaseHelper.compareTo(a, b));
50 assertTrue(TBaseHelper.compareTo(a, b) > 0);
54 assertEquals(0, TBaseHelper.compareTo(a, b));
58 assertTrue(TBaseHelper.compareTo(a, b) < 0);
62 assertTrue(TBaseHelper.compareTo(a, b) > 0);
75 assertTrue(TBaseHelper.compareTo(a, b) < 0); in testNestedStructures()
83 assertEquals(0, TBaseHelper.compareTo(a, b));
93 assertTrue(TBaseHelper.compareTo(a, b) < 0);
101 assertEquals(0, TBaseHelper.compareTo(a, b));
[all …]
DTestStruct.java131 assertEquals(0, bonk1.compareTo(bonk2)); in testCompareTo()
136 assertTrue(bonk1.compareTo(bonk2) > 0); in testCompareTo()
137 assertTrue(bonk2.compareTo(bonk1) < 0); in testCompareTo()
141 assertTrue(bonk1.compareTo(bonk2) < 0); in testCompareTo()
142 assertTrue(bonk2.compareTo(bonk1) > 0); in testCompareTo()
146 assertTrue(bonk1.compareTo(bonk2) > 0); in testCompareTo()
147 assertTrue(bonk2.compareTo(bonk1) < 0); in testCompareTo()
152 assertEquals(0, bonk1.compareTo(bonk2)); in testCompareTo()
190 int compareTo = insanity1.compareTo(insanity2);
192 compareTo < 0, insanity1 + " should be less than " + insanity2 + ", but is: " + compareTo);
[all …]
DTestTUnion.java102 assertEquals(0, cu.compareTo(cu)); in testCompareTo()
103 assertEquals(0, cu2.compareTo(cu2)); in testCompareTo()
105 assertTrue(cu.compareTo(cu2) < 0); in testCompareTo()
106 assertTrue(cu2.compareTo(cu) > 0); in testCompareTo()
110 assertTrue(cu.compareTo(cu2) < 0); in testCompareTo()
111 assertTrue(cu2.compareTo(cu) > 0); in testCompareTo()
115 assertTrue(cu.compareTo(cu2) < 0); in testCompareTo()
116 assertTrue(cu2.compareTo(cu) > 0); in testCompareTo()
120 assertEquals(0, union1.compareTo(union2)); in testCompareTo()
126 assertTrue(union3.compareTo(union4) < 0); in testCompareTo()
[all …]
/thrift-3.4.0/lib/java/src/test/java/org/apache/thrift/partial/
DTestPartialThriftDeserializer.java369 assertEquals(0, bb.compareTo(list.get(i))); in validateListOfBinary()
455 assertEquals(0, bb.compareTo(b)); in validateSetOfBinary()
565 assertEquals(0, bb.compareTo(map.get(i))); in validateMapOfBinary()
/thrift-3.4.0/lib/java/src/main/java/org/apache/thrift/partial/
DPartialThriftComparer.java266 if (((ByteBuffer) o1).compareTo((ByteBuffer) o2) == 0) { in areBinaryFieldsEqual()
/thrift-3.4.0/
DCHANGES.md3608 …-1255) - Mismatch of method name between JavaME's lib and generated code (compareTo/compareObjects)