@Test public void testToLong() throws Exception { Assert.assertTrue(HexString.toLong("11:22") != 0); }
public static long toLong(String values) throws NumberFormatException { BigInteger bi = new BigInteger(values.replaceAll(":", ""), 16); if (bi.bitLength() > 64) throw new NumberFormatException("Input string too big to fit in long: " + values); return bi.longValue(); }
HexString { public static long toLong(String values) throws NumberFormatException { BigInteger bi = new BigInteger(values.replaceAll(":", ""), 16); if (bi.bitLength() > 64) throw new NumberFormatException("Input string too big to fit in long: " + values); return bi.longValue(); } }
HexString { public static long toLong(String values) throws NumberFormatException { BigInteger bi = new BigInteger(values.replaceAll(":", ""), 16); if (bi.bitLength() > 64) throw new NumberFormatException("Input string too big to fit in long: " + values); return bi.longValue(); }  }
HexString { public static long toLong(String values) throws NumberFormatException { BigInteger bi = new BigInteger(values.replaceAll(":", ""), 16); if (bi.bitLength() > 64) throw new NumberFormatException("Input string too big to fit in long: " + values); return bi.longValue(); }  static String toHexString(long val, int padTo); static String toHexString(long val); static byte[] fromHexString(String values); static long toLong(String values); }
HexString { public static long toLong(String values) throws NumberFormatException { BigInteger bi = new BigInteger(values.replaceAll(":", ""), 16); if (bi.bitLength() > 64) throw new NumberFormatException("Input string too big to fit in long: " + values); return bi.longValue(); }  static String toHexString(long val, int padTo); static String toHexString(long val); static byte[] fromHexString(String values); static long toLong(String values);  }