@Test public void testToStringBytes() { byte[] dpid = {0, 0, 0, 0, 0, 0, 0, -1 }; String valid = "00:00:00:00:00:00:00:ff"; String testString = HexString.toHexString(dpid); TestCase.assertEquals(valid, testString); }
public static String toHexString(final byte[] bytes) { return toHexString(bytes, ":"); }
HexString { public static String toHexString(final byte[] bytes) { return toHexString(bytes, ":"); } }
HexString { public static String toHexString(final byte[] bytes) { return toHexString(bytes, ":"); } private  HexString(); }
HexString { public static String toHexString(final byte[] bytes) { return toHexString(bytes, ":"); } private  HexString(); static String toHexString(final byte[] bytes); static String toHexString(final byte[] bytes, String separator); static String toHexString(final long val, final int padTo); static String toHexString(final long val); static byte[] fromHexString(final String values); static byte[] fromHexString(final String values, String separator); static long toLong(String value); }
HexString { public static String toHexString(final byte[] bytes) { return toHexString(bytes, ":"); } private  HexString(); static String toHexString(final byte[] bytes); static String toHexString(final byte[] bytes, String separator); static String toHexString(final long val, final int padTo); static String toHexString(final long val); static byte[] fromHexString(final String values); static byte[] fromHexString(final String values, String separator); static long toLong(String value);  }