@Test public void testFromBytesTooShort() { assertNull(IdUtils.fromBytes(new byte[] { 1, 2, 3 })); }
public static UUID fromBytes(final byte[] b) { if (b == null || b.length != 16) { return null; } final ByteBuffer bb = ByteBuffer.wrap(b); return new UUID(bb.getLong(), bb.getLong()); }
IdUtils { public static UUID fromBytes(final byte[] b) { if (b == null || b.length != 16) { return null; } final ByteBuffer bb = ByteBuffer.wrap(b); return new UUID(bb.getLong(), bb.getLong()); } }
IdUtils { public static UUID fromBytes(final byte[] b) { if (b == null || b.length != 16) { return null; } final ByteBuffer bb = ByteBuffer.wrap(b); return new UUID(bb.getLong(), bb.getLong()); } IdUtils(); }
IdUtils { public static UUID fromBytes(final byte[] b) { if (b == null || b.length != 16) { return null; } final ByteBuffer bb = ByteBuffer.wrap(b); return new UUID(bb.getLong(), bb.getLong()); } IdUtils(); static UUID create(); static UUID tryParse(final String str); static byte[] toBytes(final UUID id); static UUID fromBytes(final byte[] b); }
IdUtils { public static UUID fromBytes(final byte[] b) { if (b == null || b.length != 16) { return null; } final ByteBuffer bb = ByteBuffer.wrap(b); return new UUID(bb.getLong(), bb.getLong()); } IdUtils(); static UUID create(); static UUID tryParse(final String str); static byte[] toBytes(final UUID id); static UUID fromBytes(final byte[] b);  }