@Test public void checkUUIDToBytes() { String uuidString = "384000008cf011bdb23e10b96e4ef00d"; UUID uuid = UUID.fromString( "38400000-8cf0-11bd-b23e-10b96e4ef00d"); byte[] bytes = AkGUID.uuidToBytes(uuid); String output = Hex.encodeHexString(bytes); assertEquals(output, uuidString); }
public static byte[] uuidToBytes(UUID guid) { ByteBuffer bb = ByteBuffer.allocate(16); bb.putLong(0, guid.getMostSignificantBits()); bb.putLong(8, guid.getLeastSignificantBits()); return bb.array(); }
AkGUID extends NoAttrTClass { public static byte[] uuidToBytes(UUID guid) { ByteBuffer bb = ByteBuffer.allocate(16); bb.putLong(0, guid.getMostSignificantBits()); bb.putLong(8, guid.getLeastSignificantBits()); return bb.array(); } }
AkGUID extends NoAttrTClass { public static byte[] uuidToBytes(UUID guid) { ByteBuffer bb = ByteBuffer.allocate(16); bb.putLong(0, guid.getMostSignificantBits()); bb.putLong(8, guid.getLeastSignificantBits()); return bb.array(); } private  AkGUID(); }
AkGUID extends NoAttrTClass { public static byte[] uuidToBytes(UUID guid) { ByteBuffer bb = ByteBuffer.allocate(16); bb.putLong(0, guid.getMostSignificantBits()); bb.putLong(8, guid.getLeastSignificantBits()); return bb.array(); } private  AkGUID(); @Override ValueCacher cacher(); static byte[] uuidToBytes(UUID guid); static UUID bytesToUUID(byte[] byteAr, int offset); }
AkGUID extends NoAttrTClass { public static byte[] uuidToBytes(UUID guid) { ByteBuffer bb = ByteBuffer.allocate(16); bb.putLong(0, guid.getMostSignificantBits()); bb.putLong(8, guid.getLeastSignificantBits()); return bb.array(); } private  AkGUID(); @Override ValueCacher cacher(); static byte[] uuidToBytes(UUID guid); static UUID bytesToUUID(byte[] byteAr, int offset); final static TypeId GUIDTYPE; final static NoAttrTClass INSTANCE; final static ValueCacher CACHER; }