Package io.permazen.encoding
Class NumberEncoding<T extends Number>
java.lang.Object
io.permazen.encoding.AbstractEncoding<T>
io.permazen.encoding.PrimitiveEncoding<T>
io.permazen.encoding.NumberEncoding<T>
- All Implemented Interfaces:
Encoding<T>
,NaturalSortAware
,Serializable
,Comparator<T>
- Direct Known Subclasses:
DoubleEncoding
,FloatEncoding
,IntegralEncoding
Support superclass for the numeric primitive types.
- See Also:
-
Field Summary
Fields inherited from class io.permazen.encoding.AbstractEncoding
encodingId, typeToken
Fields inherited from interface io.permazen.encoding.Encoding
MAX_ARRAY_DIMENSIONS
-
Constructor Summary
ModifierConstructorDescriptionprotected
NumberEncoding
(EncodingId encodingId, Primitive<T> primitive) -
Method Summary
Methods inherited from class io.permazen.encoding.PrimitiveEncoding
compare, convert, convertNumber, equals, fromString, hashCode, sortsNaturally, supportsNull, toString, validate
Methods inherited from class io.permazen.encoding.AbstractEncoding
getDefaultValue, getDefaultValueBytes, getEncodingId, getTypeToken, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface io.permazen.encoding.Encoding
decode, encode, getFixedWidth, getKeyRange, hasPrefix0x00, hasPrefix0xff, read, skip, validateAndWrite, write
-
Constructor Details
-
NumberEncoding
-