@Test public void testFromHexStringError() { String invalidStr = "00:00:00:00:00:00:ffff"; try { HexString.fromHexString(invalidStr); fail("HexString.fromHexString() should have thrown a NumberFormatException"); } catch (NumberFormatException expected) { Log.info("HexString.toLong() have thrown a NumberFormatException"); } }
public static byte[] fromHexString(final String values) { return fromHexString(values, ":"); }
HexString { public static byte[] fromHexString(final String values) { return fromHexString(values, ":"); } }
HexString { public static byte[] fromHexString(final String values) { return fromHexString(values, ":"); } private  HexString(); }
HexString { public static byte[] fromHexString(final String values) { return fromHexString(values, ":"); } 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 byte[] fromHexString(final String values) { return fromHexString(values, ":"); } 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);  }