Package me.deecaad.core.file
Record Class FileReader.NestedPathToSerializer
java.lang.Object
java.lang.Record
me.deecaad.core.file.FileReader.NestedPathToSerializer
- Record Components:
serializer- Type of the serialized object.path- The "base-key" location of the outer serialized object.ex- The failure which contains copy-from and paste-to locations.
- Enclosing class:
FileReader
public static record FileReader.NestedPathToSerializer(Serializer<?> serializer, String path, me.deecaad.core.file.PathToSerializerException ex)
extends Record
Stores temporary data to help with the 'Path To' feature of serializers, specifically when used
nested in
SerializeData.-
Constructor Summary
ConstructorsConstructorDescriptionNestedPathToSerializer(Serializer<?> serializer, String path, me.deecaad.core.file.PathToSerializerException ex) Creates an instance of aNestedPathToSerializerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.me.deecaad.core.file.PathToSerializerExceptionex()Returns the value of theexrecord component.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.Serializer<?> Returns the value of theserializerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NestedPathToSerializer
public NestedPathToSerializer(Serializer<?> serializer, String path, me.deecaad.core.file.PathToSerializerException ex) Creates an instance of aNestedPathToSerializerrecord class.- Parameters:
serializer- the value for theserializerrecord componentpath- the value for thepathrecord componentex- the value for theexrecord component
-
-
Method Details
-
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). -
serializer
Returns the value of theserializerrecord component.- Returns:
- the value of the
serializerrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
ex
public me.deecaad.core.file.PathToSerializerException ex()Returns the value of theexrecord component.- Returns:
- the value of the
exrecord component
-