Package io.permazen.encoding
Class ByteEncoding
java.lang.Object
- All Implemented Interfaces:
Encoding<Byte>
,NaturalSortAware
,Serializable
,Comparator<Byte>
byte
primitive type.- 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected Byte
convertNumber
(Number value) protected Byte
downCast
(long value) Methods inherited from class io.permazen.encoding.IntegralEncoding
getFixedWidth, hasPrefix0x00, hasPrefix0xff, read, skip, upCast, write
Methods inherited from class io.permazen.encoding.PrimitiveEncoding
compare, convert, 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, getKeyRange, validateAndWrite
-
Constructor Details
-
ByteEncoding
-
-
Method Details
-
convertNumber
- Specified by:
convertNumber
in classPrimitiveEncoding<Byte>
-
downCast
- Specified by:
downCast
in classIntegralEncoding<Byte>
-