public static byte[] toByteArray(long value) {
        return new byte[]{(byte) (value >>> 56), (byte) (value >>> 48), (byte) (value >>> 40), (byte) (value >>> 32), (byte) (value >>> 24),
                (byte) (value >>> 16), (byte) (value >>> 8), (byte) value};
    }
public static byte [ ] toByteArray ( long value ) { return new byte [ ] { ( byte ) ( value > > > 56 ) , ( byte ) ( value > > > 48 ) , ( byte ) ( value > > > 40 ) , ( byte ) ( value > > > 32 ) , ( byte ) ( value > > > 24 ) , ( byte ) ( value > > > 16 ) , ( byte ) ( value > > > 8 ) , ( byte ) value } ; }
Converts {@code value} to eight-byte array.
<p>
Bytes are returned in network byte order (ordered from the most to the least significant byte).
</p>

@param value
the value to convert.

@return The converted bytes as an array.