public static Key create(int keyPrefix, ObjectId id) { if (keyPrefix >= Byte.MIN_VALUE && keyPrefix <= Byte.MAX_VALUE) { return new SmallKey((byte) keyPrefix, id); } return new BigKey(keyPrefix, id); }
public static Key create(int keyPrefix, ObjectId id) { if (keyPrefix >= Byte.MIN_VALUE && keyPrefix <= Byte.MAX_VALUE) { return new SmallKey((byte) keyPrefix, id); } return new BigKey(keyPrefix, id); }