@Test public void testCreateByteMD5() { MD5ID id1 = MD5ID.createTSDRId("Hello World".getBytes()); MD5ID id2 = MD5ID.createTSDRId("Hello World".getBytes()); Assert.assertEquals(id1,id2); }
public static MD5ID createTSDRId(final String tsdrKey) { return new MD5ID(tsdrKey.getBytes(StandardCharsets.UTF_8), false); }
MD5ID { public static MD5ID createTSDRId(final String tsdrKey) { return new MD5ID(tsdrKey.getBytes(StandardCharsets.UTF_8), false); } }
MD5ID { public static MD5ID createTSDRId(final String tsdrKey) { return new MD5ID(tsdrKey.getBytes(StandardCharsets.UTF_8), false); } private  MD5ID(long md5long1, long md5long2); private  MD5ID(byte[] byteArray, boolean alreadyHashed); }
MD5ID { public static MD5ID createTSDRId(final String tsdrKey) { return new MD5ID(tsdrKey.getBytes(StandardCharsets.UTF_8), false); } private  MD5ID(long md5long1, long md5long2); private  MD5ID(byte[] byteArray, boolean alreadyHashed); @Override int hashCode(); @Override boolean equals(Object obj); long getMd5Long1(); long getMd5Long2(); @SuppressFBWarnings("EI_EXPOSE_REP") byte[] toByteArray(); static MD5ID createTSDRId(final String tsdrKey); static MD5ID createTSDRId(long l1, long l2); static MD5ID createTSDRId(byte[] data); static MD5ID createTSDRIdAlreadyHash(byte[] data); }
MD5ID { public static MD5ID createTSDRId(final String tsdrKey) { return new MD5ID(tsdrKey.getBytes(StandardCharsets.UTF_8), false); } private  MD5ID(long md5long1, long md5long2); private  MD5ID(byte[] byteArray, boolean alreadyHashed); @Override int hashCode(); @Override boolean equals(Object obj); long getMd5Long1(); long getMd5Long2(); @SuppressFBWarnings("EI_EXPOSE_REP") byte[] toByteArray(); static MD5ID createTSDRId(final String tsdrKey); static MD5ID createTSDRId(long l1, long l2); static MD5ID createTSDRId(byte[] data); static MD5ID createTSDRIdAlreadyHash(byte[] data);  }