@Override protected int compareSecure(Value o, CompareMode mode) { if (o == this) { return 0; } ValueUuid v = (ValueUuid) o; if (high == v.high) { return MathUtils.compareLong(low, v.low); } return high > v.high ? 1 : -1; }
@Override protected int compareSecure(Value o, CompareMode mode) { ValueLong v = (ValueLong) o; return MathUtils.compareLong(value, v.value); }
@Override protected int compareSecure(Value o, CompareMode mode) { ValueTimestamp t = (ValueTimestamp) o; int c = MathUtils.compareLong(dateValue, t.dateValue); if (c != 0) { return c; } return MathUtils.compareLong(timeNanos, t.timeNanos); }
@Override protected int compareSecure(Value o, CompareMode mode) { return MathUtils.compareLong(dateValue, ((ValueDate) o).dateValue); }
@Override protected int compareSecure(Value o, CompareMode mode) { return MathUtils.compareLong(nanos, ((ValueTime) o).nanos); }