/** * This comparator WILL compare between xsd:decimal and the extending types * * @see org.mulgara.store.stringpool.SPComparator#compare(ByteBuffer, int, ByteBuffer, int) */ public int compare(ByteBuffer d1, int subtypeId1, ByteBuffer d2, int subtypeId2) { int c; if (isLong(d1) && isLong(d2)) { c = SPDecimalExtImpl.compare(d1.getLong(), d2.getLong()); } else { c = decode(d1).compareTo(decode(d2)); } if (c == 0) c = AbstractSPObject.compare(subtypeId1, subtypeId2); return c; }
/** * This comparator WILL compare between xsd:decimal and the extending types * * @see org.mulgara.store.stringpool.SPComparator#compare(ByteBuffer, int, ByteBuffer, int) */ public int compare(ByteBuffer d1, int subtypeId1, ByteBuffer d2, int subtypeId2) { int c = decode(d1).compareTo(decode(d2)); if (c == 0) c = AbstractSPObject.compare(subtypeId1, subtypeId2); return c; }