Package io.permazen.encoding
Class Tuple4Encoding<V1,V2,V3,V4>
java.lang.Object
io.permazen.encoding.AbstractEncoding<T>
io.permazen.encoding.TupleEncoding<Tuple4<V1,V2,V3,V4>>
io.permazen.encoding.Tuple4Encoding<V1,V2,V3,V4>
- All Implemented Interfaces:
Encoding<Tuple4<V1,
,V2, V3, V4>> NaturalSortAware
,Serializable
,Comparator<Tuple4<V1,
V2, V3, V4>>
Non-null
Encoding
for a Tuple4
created by concatenating the component Encoding
s.
Null values are not supported by this class and there is no default value.
- 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
Methods inherited from class io.permazen.encoding.TupleEncoding
compare, fromString, getFixedWidth, getSize, hasPrefix0x00, hasPrefix0xff, read, skip, sortsNaturally, supportsNull, toString, write
Methods inherited from class io.permazen.encoding.AbstractEncoding
equals, getDefaultValue, getDefaultValueBytes, getEncodingId, getTypeToken, hashCode, 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
convert, decode, encode, getKeyRange, validate, validateAndWrite
-
Constructor Details
-
Tuple4Encoding
public Tuple4Encoding(Encoding<V1> value1Encoding, Encoding<V2> value2Encoding, Encoding<V3> value3Encoding, Encoding<V4> value4Encoding) Constructor.- Parameters:
value1Encoding
- component value encodingvalue2Encoding
- component value encodingvalue3Encoding
- component value encodingvalue4Encoding
- component value encoding- Throws:
IllegalArgumentException
- if any component value encoding is null
-
-
Method Details
-
getEncoding1
-
getEncoding2
-
getEncoding3
-
getEncoding4
-
createTuple
- Specified by:
createTuple
in classTupleEncoding<Tuple4<V1,
V2, V3, V4>>
-