Class ArrayUtil


  • class ArrayUtil
    extends java.lang.Object
    Utility to serialize/deserialize longs into byte arrays.
    • Constructor Summary

      Constructors 
      Constructor Description
      ArrayUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long getLong​(byte[] array, int index)  
      static boolean isArrayAllZeros​(byte[] array)  
      static void setLong​(byte[] array, int index, long value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArrayUtil

        ArrayUtil()
    • Method Detail

      • getLong

        public static long getLong​(byte[] array,
                                   int index)
      • setLong

        public static void setLong​(byte[] array,
                                   int index,
                                   long value)
      • isArrayAllZeros

        public static boolean isArrayAllZeros​(byte[] array)