Record Class Codec.Field<P,T>
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.common.serialization.Codec.Field<P,T>
- Type Parameters:
P- The parent object type containing the field.T- The type of the field itself.- Record Components:
name- The key identifier for this field in the serialized format.codec- The codec used to process the field data.getter- A function used to extract the field value from a parent object instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncodec()Returns the value of thecodecrecord component.final booleanIndicates whether some other object is "equal to" this one.getter()Returns the value of thegetterrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Field
-
-
Method Details
-
toString
-
hashCode
-
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). -
name
-
codec
-
getter
-