public static byte [ ] toBytes ( UUID id ) { byte [ ] bytes = new byte [ 16 ] ; ByteUtils . writeLong ( id . getMostSignificantBits ( ) , bytes , 0 ) ; ByteUtils . writeLong ( id . getLeastSignificantBits ( ) , bytes , 8 ) ; return bytes ; }
Convert UUID in compact form of byte array