@Test @Theory public void testCompareTo(Object q1) { Object q2 = increase(q1); Value v1 = Variables.register("v1", Value.wrap(Convert.javaToThrift(q1))); Value v2 = Variables.register("v2", Value.wrap(Convert.javaToThrift(q2))); Assert.assertTrue(v1.compareTo(v2) < 0); }
@Override public int compareTo(Value other) { return Sorter.INSTANCE.compare(this, other); }
Value implements Byteable, Comparable<Value> { @Override public int compareTo(Value other) { return Sorter.INSTANCE.compare(this, other); } }
Value implements Byteable, Comparable<Value> { @Override public int compareTo(Value other) { return Sorter.INSTANCE.compare(this, other); } private  Value(TObject data); private  Value(TObject data, @Nullable ByteBuffer bytes); }
Value implements Byteable, Comparable<Value> { @Override public int compareTo(Value other) { return Sorter.INSTANCE.compare(this, other); } private  Value(TObject data); private  Value(TObject data, @Nullable ByteBuffer bytes); static Value fromByteBuffer(ByteBuffer bytes); static Value optimize(Value value); static Value wrap(TObject data); @Override int compareTo(Value other); int compareToIgnoreCase(Value other); @Override void copyCanonicalBytesTo(ByteBuffer buffer); @Override void copyCanonicalBytesTo(ByteSink sink); @Override void copyTo(ByteSink sink); @Override boolean equals(Object obj); boolean equalsIgnoreCase(Value obj); @Override ByteBuffer getBytes(); @Override ByteBuffer getCanonicalBytes(); @Override int getCanonicalLength(); Object getObject(); TObject getTObject(); Type getType(); @Override int hashCode(); boolean isCharSequenceType(); boolean isNumericType(); @Override int size(); @Override String toString(); Value toUpperCase(); Value toLowerCase(); }
Value implements Byteable, Comparable<Value> { @Override public int compareTo(Value other) { return Sorter.INSTANCE.compare(this, other); } private  Value(TObject data); private  Value(TObject data, @Nullable ByteBuffer bytes); static Value fromByteBuffer(ByteBuffer bytes); static Value optimize(Value value); static Value wrap(TObject data); @Override int compareTo(Value other); int compareToIgnoreCase(Value other); @Override void copyCanonicalBytesTo(ByteBuffer buffer); @Override void copyCanonicalBytesTo(ByteSink sink); @Override void copyTo(ByteSink sink); @Override boolean equals(Object obj); boolean equalsIgnoreCase(Value obj); @Override ByteBuffer getBytes(); @Override ByteBuffer getCanonicalBytes(); @Override int getCanonicalLength(); Object getObject(); TObject getTObject(); Type getType(); @Override int hashCode(); boolean isCharSequenceType(); boolean isNumericType(); @Override int size(); @Override String toString(); Value toUpperCase(); Value toLowerCase(); static Value NEGATIVE_INFINITY; static Value POSITIVE_INFINITY; }