final long bits = Double.doubleToRawLongBits(value);
final long bits = Double.doubleToLongBits(value) ^ 0x8000000000000000L;
    public byte[] serialize(short collectionId) {        final byte[] data = new byte[11];        ByteConversion.shortToByte(collectionId, data, 0);        data[2] = (byte) Type.DOUBLE;        final long bits = Double.doubleToRawLongBits(value);        ByteConversion.longToByte(bits, data, 3);        return data;    }