Module net.luis.utils
Record Class CodecGrouper16<CI1,CI2,CI3,CI4,CI5,CI6,CI7,CI8,CI9,CI10,CI11,CI12,CI13,CI14,CI15,CI16,O>
java.lang.Object
java.lang.Record
net.luis.utils.io.codec.group.grouper.CodecGrouper16<CI1,CI2,CI3,CI4,CI5,CI6,CI7,CI8,CI9,CI10,CI11,CI12,CI13,CI14,CI15,CI16,O>
- Type Parameters:
CI1
- The type of the first componentCI2
- The type of the second componentCI3
- The type of the third componentCI4
- The type of the fourth componentCI5
- The type of the fifth componentCI6
- The type of the sixth componentCI7
- The type of the seventh componentCI8
- The type of the eighth componentCI9
- The type of the ninth componentCI10
- The type of the tenth componentCI11
- The type of the eleventh componentCI12
- The type of the twelfth componentCI13
- The type of the thirteenth componentCI14
- The type of the fourteenth componentCI15
- The type of the fifteenth componentCI16
- The type of the sixteenth componentO
- The type of the resulting object this grouper is for- Record Components:
codec1
- The first codeccodec2
- The second codeccodec3
- The third codeccodec4
- The fourth codeccodec5
- The fifth codeccodec6
- The sixth codeccodec7
- The seventh codeccodec8
- The eighth codeccodec9
- The ninth codeccodec10
- The tenth codeccodec11
- The eleventh codeccodec12
- The twelfth codeccodec13
- The thirteenth codeccodec14
- The fourteenth codeccodec15
- The fifteenth codeccodec16
- The sixteenth codec
public record CodecGrouper16<CI1,CI2,CI3,CI4,CI5,CI6,CI7,CI8,CI9,CI10,CI11,CI12,CI13,CI14,CI15,CI16,O> (@NotNull ConfiguredCodec<CI1,O> codec1, @NotNull ConfiguredCodec<CI2,O> codec2, @NotNull ConfiguredCodec<CI3,O> codec3, @NotNull ConfiguredCodec<CI4,O> codec4, @NotNull ConfiguredCodec<CI5,O> codec5, @NotNull ConfiguredCodec<CI6,O> codec6, @NotNull ConfiguredCodec<CI7,O> codec7, @NotNull ConfiguredCodec<CI8,O> codec8, @NotNull ConfiguredCodec<CI9,O> codec9, @NotNull ConfiguredCodec<CI10,O> codec10, @NotNull ConfiguredCodec<CI11,O> codec11, @NotNull ConfiguredCodec<CI12,O> codec12, @NotNull ConfiguredCodec<CI13,O> codec13, @NotNull ConfiguredCodec<CI14,O> codec14, @NotNull ConfiguredCodec<CI15,O> codec15, @NotNull ConfiguredCodec<CI16,O> codec16)
extends Record
Represents a group of sixteen codecs.
The grouper is used for creating a new single codec that encodes and decodes a value of a specific type.
Each codec is responsible for encoding and decoding a specific component (field) of the value.
The grouped codec is created by providing a function that creates the value from the decoded components.
The grouper is used for creating a new single codec that encodes and decodes a value of a specific type.
Each codec is responsible for encoding and decoding a specific component (field) of the value.
The grouped codec is created by providing a function that creates the value from the decoded components.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NotNull ConfiguredCodec
<CI1, O> The field for thecodec1
record component.private final @NotNull ConfiguredCodec
<CI10, O> The field for thecodec10
record component.private final @NotNull ConfiguredCodec
<CI11, O> The field for thecodec11
record component.private final @NotNull ConfiguredCodec
<CI12, O> The field for thecodec12
record component.private final @NotNull ConfiguredCodec
<CI13, O> The field for thecodec13
record component.private final @NotNull ConfiguredCodec
<CI14, O> The field for thecodec14
record component.private final @NotNull ConfiguredCodec
<CI15, O> The field for thecodec15
record component.private final @NotNull ConfiguredCodec
<CI16, O> The field for thecodec16
record component.private final @NotNull ConfiguredCodec
<CI2, O> The field for thecodec2
record component.private final @NotNull ConfiguredCodec
<CI3, O> The field for thecodec3
record component.private final @NotNull ConfiguredCodec
<CI4, O> The field for thecodec4
record component.private final @NotNull ConfiguredCodec
<CI5, O> The field for thecodec5
record component.private final @NotNull ConfiguredCodec
<CI6, O> The field for thecodec6
record component.private final @NotNull ConfiguredCodec
<CI7, O> The field for thecodec7
record component.private final @NotNull ConfiguredCodec
<CI8, O> The field for thecodec8
record component.private final @NotNull ConfiguredCodec
<CI9, O> The field for thecodec9
record component. -
Constructor Summary
ConstructorsConstructorDescriptionCodecGrouper16
(@NotNull ConfiguredCodec<CI1, O> codec1, @NotNull ConfiguredCodec<CI2, O> codec2, @NotNull ConfiguredCodec<CI3, O> codec3, @NotNull ConfiguredCodec<CI4, O> codec4, @NotNull ConfiguredCodec<CI5, O> codec5, @NotNull ConfiguredCodec<CI6, O> codec6, @NotNull ConfiguredCodec<CI7, O> codec7, @NotNull ConfiguredCodec<CI8, O> codec8, @NotNull ConfiguredCodec<CI9, O> codec9, @NotNull ConfiguredCodec<CI10, O> codec10, @NotNull ConfiguredCodec<CI11, O> codec11, @NotNull ConfiguredCodec<CI12, O> codec12, @NotNull ConfiguredCodec<CI13, O> codec13, @NotNull ConfiguredCodec<CI14, O> codec14, @NotNull ConfiguredCodec<CI15, O> codec15, @NotNull ConfiguredCodec<CI16, O> codec16) Constructs a new codec grouper with the provided codecs.
Do not use this constructor directly, use the builder method inCodecBuilder
instead. -
Method Summary
Modifier and TypeMethodDescription@NotNull ConfiguredCodec
<CI1, O> codec1()
Returns the value of thecodec1
record component.@NotNull ConfiguredCodec
<CI10, O> codec10()
Returns the value of thecodec10
record component.@NotNull ConfiguredCodec
<CI11, O> codec11()
Returns the value of thecodec11
record component.@NotNull ConfiguredCodec
<CI12, O> codec12()
Returns the value of thecodec12
record component.@NotNull ConfiguredCodec
<CI13, O> codec13()
Returns the value of thecodec13
record component.@NotNull ConfiguredCodec
<CI14, O> codec14()
Returns the value of thecodec14
record component.@NotNull ConfiguredCodec
<CI15, O> codec15()
Returns the value of thecodec15
record component.@NotNull ConfiguredCodec
<CI16, O> codec16()
Returns the value of thecodec16
record component.@NotNull ConfiguredCodec
<CI2, O> codec2()
Returns the value of thecodec2
record component.@NotNull ConfiguredCodec
<CI3, O> codec3()
Returns the value of thecodec3
record component.@NotNull ConfiguredCodec
<CI4, O> codec4()
Returns the value of thecodec4
record component.@NotNull ConfiguredCodec
<CI5, O> codec5()
Returns the value of thecodec5
record component.@NotNull ConfiguredCodec
<CI6, O> codec6()
Returns the value of thecodec6
record component.@NotNull ConfiguredCodec
<CI7, O> codec7()
Returns the value of thecodec7
record component.@NotNull ConfiguredCodec
<CI8, O> codec8()
Returns the value of thecodec8
record component.@NotNull ConfiguredCodec
<CI9, O> codec9()
Returns the value of thecodec9
record component.create
(@NotNull CodecGroupingFunction16<CI1, CI2, CI3, CI4, CI5, CI6, CI7, CI8, CI9, CI10, CI11, CI12, CI13, CI14, CI15, CI16, O> function) Creates a new codec using the codecs of this grouper and the provided grouping function.
The grouping function is used to create the resulting object from the decoded components.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
codec1
The field for thecodec1
record component. -
codec2
The field for thecodec2
record component. -
codec3
The field for thecodec3
record component. -
codec4
The field for thecodec4
record component. -
codec5
The field for thecodec5
record component. -
codec6
The field for thecodec6
record component. -
codec7
The field for thecodec7
record component. -
codec8
The field for thecodec8
record component. -
codec9
The field for thecodec9
record component. -
codec10
The field for thecodec10
record component. -
codec11
The field for thecodec11
record component. -
codec12
The field for thecodec12
record component. -
codec13
The field for thecodec13
record component. -
codec14
The field for thecodec14
record component. -
codec15
The field for thecodec15
record component. -
codec16
The field for thecodec16
record component.
-
-
Constructor Details
-
CodecGrouper16
@Internal public CodecGrouper16(@NotNull @NotNull ConfiguredCodec<CI1, O> codec1, @NotNull @NotNull ConfiguredCodec<CI2, O> codec2, @NotNull @NotNull ConfiguredCodec<CI3, O> codec3, @NotNull @NotNull ConfiguredCodec<CI4, O> codec4, @NotNull @NotNull ConfiguredCodec<CI5, O> codec5, @NotNull @NotNull ConfiguredCodec<CI6, O> codec6, @NotNull @NotNull ConfiguredCodec<CI7, O> codec7, @NotNull @NotNull ConfiguredCodec<CI8, O> codec8, @NotNull @NotNull ConfiguredCodec<CI9, O> codec9, @NotNull @NotNull ConfiguredCodec<CI10, O> codec10, @NotNull @NotNull ConfiguredCodec<CI11, O> codec11, @NotNull @NotNull ConfiguredCodec<CI12, O> codec12, @NotNull @NotNull ConfiguredCodec<CI13, O> codec13, @NotNull @NotNull ConfiguredCodec<CI14, O> codec14, @NotNull @NotNull ConfiguredCodec<CI15, O> codec15, @NotNull @NotNull ConfiguredCodec<CI16, O> codec16) Constructs a new codec grouper with the provided codecs.
Do not use this constructor directly, use the builder method inCodecBuilder
instead.- Parameters:
codec1
- The first codeccodec2
- The second codeccodec3
- The third codeccodec4
- The fourth codeccodec5
- The fifth codeccodec6
- The sixth codeccodec7
- The seventh codeccodec8
- The eighth codeccodec9
- The ninth codeccodec10
- The tenth codeccodec11
- The eleventh codeccodec12
- The twelfth codeccodec13
- The thirteenth codeccodec14
- The fourteenth codeccodec15
- The fifteenth codeccodec16
- The sixteenth codec- Throws:
NullPointerException
- If any of the provided codecs is null
-
-
Method Details
-
create
@NotNull public @NotNull Codec<O> create(@NotNull @NotNull CodecGroupingFunction16<CI1, CI2, CI3, CI4, CI5, CI6, CI7, CI8, CI9, CI10, CI11, CI12, CI13, CI14, CI15, CI16, O> function) Creates a new codec using the codecs of this grouper and the provided grouping function.
The grouping function is used to create the resulting object from the decoded components.- Parameters:
function
- The grouping function- Returns:
- The created codec
- Throws:
NullPointerException
- If the provided grouping function is null
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
codec1
Returns the value of thecodec1
record component.- Returns:
- the value of the
codec1
record component
-
codec2
Returns the value of thecodec2
record component.- Returns:
- the value of the
codec2
record component
-
codec3
Returns the value of thecodec3
record component.- Returns:
- the value of the
codec3
record component
-
codec4
Returns the value of thecodec4
record component.- Returns:
- the value of the
codec4
record component
-
codec5
Returns the value of thecodec5
record component.- Returns:
- the value of the
codec5
record component
-
codec6
Returns the value of thecodec6
record component.- Returns:
- the value of the
codec6
record component
-
codec7
Returns the value of thecodec7
record component.- Returns:
- the value of the
codec7
record component
-
codec8
Returns the value of thecodec8
record component.- Returns:
- the value of the
codec8
record component
-
codec9
Returns the value of thecodec9
record component.- Returns:
- the value of the
codec9
record component
-
codec10
Returns the value of thecodec10
record component.- Returns:
- the value of the
codec10
record component
-
codec11
Returns the value of thecodec11
record component.- Returns:
- the value of the
codec11
record component
-
codec12
Returns the value of thecodec12
record component.- Returns:
- the value of the
codec12
record component
-
codec13
Returns the value of thecodec13
record component.- Returns:
- the value of the
codec13
record component
-
codec14
Returns the value of thecodec14
record component.- Returns:
- the value of the
codec14
record component
-
codec15
Returns the value of thecodec15
record component.- Returns:
- the value of the
codec15
record component
-
codec16
Returns the value of thecodec16
record component.- Returns:
- the value of the
codec16
record component
-