@Test public void testFromHasGuid() throws IOException { Random random = new Random(); byte[] b = new byte[10]; random.nextBytes(b); Guid guid = new Guid(b); HasGuid hasGuid = new Guid.SimpleHasGuid(guid); Assert.assertEquals(hasGuid.guid(), guid); }
public static Guid fromHasGuid(HasGuid... objs) throws IOException { byte[][] byteArrays = new byte[objs.length][]; for (int i = 0; i < objs.length; i++) { byteArrays[i] = objs[i].guid().sha; } return fromByteArrays(byteArrays); }
Guid { public static Guid fromHasGuid(HasGuid... objs) throws IOException { byte[][] byteArrays = new byte[objs.length][]; for (int i = 0; i < objs.length; i++) { byteArrays[i] = objs[i].guid().sha; } return fromByteArrays(byteArrays); } }
Guid { public static Guid fromHasGuid(HasGuid... objs) throws IOException { byte[][] byteArrays = new byte[objs.length][]; for (int i = 0; i < objs.length; i++) { byteArrays[i] = objs[i].guid().sha; } return fromByteArrays(byteArrays); } Guid(byte[] bytes); private  Guid(byte[] bytes, boolean isSha); }
Guid { public static Guid fromHasGuid(HasGuid... objs) throws IOException { byte[][] byteArrays = new byte[objs.length][]; for (int i = 0; i < objs.length; i++) { byteArrays[i] = objs[i].guid().sha; } return fromByteArrays(byteArrays); } Guid(byte[] bytes); private  Guid(byte[] bytes, boolean isSha); static Guid fromHasGuid(HasGuid... objs); static Guid fromStrings(String... strings); static Guid fromByteArrays(byte[]... byteArrays); static Guid deserialize(String str); static Guid combine(Guid... guids); Guid append(byte[]... byteArrays); Guid append(Guid... guids); Guid append(HasGuid... objs); @Override String toString(); }
Guid { public static Guid fromHasGuid(HasGuid... objs) throws IOException { byte[][] byteArrays = new byte[objs.length][]; for (int i = 0; i < objs.length; i++) { byteArrays[i] = objs[i].guid().sha; } return fromByteArrays(byteArrays); } Guid(byte[] bytes); private  Guid(byte[] bytes, boolean isSha); static Guid fromHasGuid(HasGuid... objs); static Guid fromStrings(String... strings); static Guid fromByteArrays(byte[]... byteArrays); static Guid deserialize(String str); static Guid combine(Guid... guids); Guid append(byte[]... byteArrays); Guid append(Guid... guids); Guid append(HasGuid... objs); @Override String toString(); static final int GUID_LENGTH; }