Class Serializers.UnsignedLongSerializer
- java.lang.Object
-
- com.complexible.common.primitives.Serializers.UnsignedLongSerializer
-
- Enclosing class:
- Serializers
public static final class Serializers.UnsignedLongSerializer extends java.lang.Object
Serialize longs in an "Unsigned" form. In reality, this encoding guarantees that the natural sort matches unsigned lexicographic sort (i.e. -1 before 0, etc).
-
-
Constructor Summary
Constructors Constructor Description UnsignedLongSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
deserialize(byte[] bytes)
long
deserialize(byte[] bytes, int offset)
byte[]
serialize(long value)
void
serialize(long value, byte[] bytes, int offset)
-