Module net.luis.utils
Record Class CodecGrouper10<CI1,CI2,CI3,CI4,CI5,CI6,CI7,CI8,CI9,CI10,O>          
java.lang.Object
java.lang.Record
net.luis.utils.io.codec.group.grouper.CodecGrouper10<CI1,CI2,CI3,CI4,CI5,CI6,CI7,CI8,CI9,CI10,O>          
- Type Parameters:
- CI1- The type of the first component
- CI2- The type of the second component
- CI3- The type of the third component
- CI4- The type of the fourth component
- CI5- The type of the fifth component
- CI6- The type of the sixth component
- CI7- The type of the seventh component
- CI8- The type of the eighth component
- CI9- The type of the ninth component
- CI10- The type of the tenth component
- O- The type of the resulting object this grouper is for
- Record Components:
- codec1- The first codec
- codec2- The second codec
- codec3- The third codec
- codec4- The fourth codec
- codec5- The fifth codec
- codec6- The sixth codec
- codec7- The seventh codec
- codec8- The eighth codec
- codec9- The ninth codec
- codec10- The tenth codec
public record CodecGrouper10<CI1,CI2,CI3,CI4,CI5,CI6,CI7,CI8,CI9,CI10,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)
extends Record          
Represents a group of ten 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 SummaryFieldsModifier and TypeFieldDescriptionprivate final @NotNull ConfiguredCodec<CI1, O> The field for thecodec1record component.private final @NotNull ConfiguredCodec<CI10, O> The field for thecodec10record component.private final @NotNull ConfiguredCodec<CI2, O> The field for thecodec2record component.private final @NotNull ConfiguredCodec<CI3, O> The field for thecodec3record component.private final @NotNull ConfiguredCodec<CI4, O> The field for thecodec4record component.private final @NotNull ConfiguredCodec<CI5, O> The field for thecodec5record component.private final @NotNull ConfiguredCodec<CI6, O> The field for thecodec6record component.private final @NotNull ConfiguredCodec<CI7, O> The field for thecodec7record component.private final @NotNull ConfiguredCodec<CI8, O> The field for thecodec8record component.private final @NotNull ConfiguredCodec<CI9, O> The field for thecodec9record component.
- 
Constructor SummaryConstructorsConstructorDescriptionCodecGrouper10(@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) Constructs a new codec grouper with the provided codecs.
 Do not use this constructor directly, use the builder method inCodecBuilderinstead.
- 
Method SummaryModifier and TypeMethodDescription@NotNull ConfiguredCodec<CI1, O> codec1()Returns the value of thecodec1record component.@NotNull ConfiguredCodec<CI10, O> codec10()Returns the value of thecodec10record component.@NotNull ConfiguredCodec<CI2, O> codec2()Returns the value of thecodec2record component.@NotNull ConfiguredCodec<CI3, O> codec3()Returns the value of thecodec3record component.@NotNull ConfiguredCodec<CI4, O> codec4()Returns the value of thecodec4record component.@NotNull ConfiguredCodec<CI5, O> codec5()Returns the value of thecodec5record component.@NotNull ConfiguredCodec<CI6, O> codec6()Returns the value of thecodec6record component.@NotNull ConfiguredCodec<CI7, O> codec7()Returns the value of thecodec7record component.@NotNull ConfiguredCodec<CI8, O> codec8()Returns the value of thecodec8record component.@NotNull ConfiguredCodec<CI9, O> codec9()Returns the value of thecodec9record component.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 booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
codec1The field for thecodec1record component.
- 
codec2The field for thecodec2record component.
- 
codec3The field for thecodec3record component.
- 
codec4The field for thecodec4record component.
- 
codec5The field for thecodec5record component.
- 
codec6The field for thecodec6record component.
- 
codec7The field for thecodec7record component.
- 
codec8The field for thecodec8record component.
- 
codec9The field for thecodec9record component.
- 
codec10The field for thecodec10record component.
 
- 
- 
Constructor Details- 
CodecGrouper10@Internal public CodecGrouper10(@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) Constructs a new codec grouper with the provided codecs.
 Do not use this constructor directly, use the builder method inCodecBuilderinstead.- Parameters:
- codec1- The first codec
- codec2- The second codec
- codec3- The third codec
- codec4- The fourth codec
- codec5- The fifth codec
- codec6- The sixth codec
- codec7- The seventh codec
- codec8- The eighth codec
- codec9- The ninth codec
- codec10- The tenth codec
- Throws:
- NullPointerException- If any of the provided codecs is null
 
 
- 
- 
Method Details- 
create@NotNull public @NotNull Codec<O> create(@NotNull @NotNull CodecGroupingFunction10<CI1, CI2, CI3, CI4, CI5, CI6, CI7, CI8, CI9, CI10, 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
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
codec1Returns the value of thecodec1record component.- Returns:
- the value of the codec1record component
 
- 
codec2Returns the value of thecodec2record component.- Returns:
- the value of the codec2record component
 
- 
codec3Returns the value of thecodec3record component.- Returns:
- the value of the codec3record component
 
- 
codec4Returns the value of thecodec4record component.- Returns:
- the value of the codec4record component
 
- 
codec5Returns the value of thecodec5record component.- Returns:
- the value of the codec5record component
 
- 
codec6Returns the value of thecodec6record component.- Returns:
- the value of the codec6record component
 
- 
codec7Returns the value of thecodec7record component.- Returns:
- the value of the codec7record component
 
- 
codec8Returns the value of thecodec8record component.- Returns:
- the value of the codec8record component
 
- 
codec9Returns the value of thecodec9record component.- Returns:
- the value of the codec9record component
 
- 
codec10Returns the value of thecodec10record component.- Returns:
- the value of the codec10record component
 
 
-