@Test (expectedExceptions = IllegalArgumentException.class) public void bytesToDoubleTooShort() throws Exception { Utils.bytesToDouble(new byte[] { 0, 0, 0, 0, 0, 0, 0 }); }
public static double bytesToDouble(final byte[] bytes) { if (bytes.length < 8) { throw new IllegalArgumentException("Byte array must be 8 bytes wide."); } return Double.longBitsToDouble(bytesToLong(bytes)); }
Utils { public static double bytesToDouble(final byte[] bytes) { if (bytes.length < 8) { throw new IllegalArgumentException("Byte array must be 8 bytes wide."); } return Double.longBitsToDouble(bytesToLong(bytes)); } }
Utils { public static double bytesToDouble(final byte[] bytes) { if (bytes.length < 8) { throw new IllegalArgumentException("Byte array must be 8 bytes wide."); } return Double.longBitsToDouble(bytesToLong(bytes)); } private  Utils(); }
Utils { public static double bytesToDouble(final byte[] bytes) { if (bytes.length < 8) { throw new IllegalArgumentException("Byte array must be 8 bytes wide."); } return Double.longBitsToDouble(bytesToLong(bytes)); } private  Utils(); static long hash(long val); static long fnvhash64(long val); static long bytesToLong(final byte[] bytes); static byte[] longToBytes(final long val); static double bytesToDouble(final byte[] bytes); static byte[] doubleToBytes(final double val); static int getActiveThreadCount(); static long getUsedMemoryBytes(); static int getUsedMemoryMegaBytes(); static double getSystemLoadAverage(); static long getGCTotalCollectionCount(); static long getGCTotalTime(); static Map<String, Long[]> getGCStatst(); static T [] shuffleArray(final T[] array); }
Utils { public static double bytesToDouble(final byte[] bytes) { if (bytes.length < 8) { throw new IllegalArgumentException("Byte array must be 8 bytes wide."); } return Double.longBitsToDouble(bytesToLong(bytes)); } private  Utils(); static long hash(long val); static long fnvhash64(long val); static long bytesToLong(final byte[] bytes); static byte[] longToBytes(final long val); static double bytesToDouble(final byte[] bytes); static byte[] doubleToBytes(final double val); static int getActiveThreadCount(); static long getUsedMemoryBytes(); static int getUsedMemoryMegaBytes(); static double getSystemLoadAverage(); static long getGCTotalCollectionCount(); static long getGCTotalTime(); static Map<String, Long[]> getGCStatst(); static T [] shuffleArray(final T[] array); static final long FNV_OFFSET_BASIS_64; static final long FNV_PRIME_64; }