Record Class RecordedTraversals
java.lang.Object
java.lang.Record
one.xingyi.optics.annotations.processors.RecordedTraversals
-
Constructor Summary
ConstructorsConstructorDescriptionRecordedTraversals(boolean debug, List<one.xingyi.optics.annotations.processors.NameAndType> classAndFields) Creates an instance of aRecordedTraversalsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<one.xingyi.optics.annotations.processors.NameAndType>Returns the value of theclassAndFieldsrecord component.booleandebug()Returns the value of thedebugrecord component.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.
-
Constructor Details
-
RecordedTraversals
public RecordedTraversals(boolean debug, List<one.xingyi.optics.annotations.processors.NameAndType> classAndFields) Creates an instance of aRecordedTraversalsrecord class.- Parameters:
debug- the value for thedebugrecord componentclassAndFields- the value for theclassAndFieldsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
debug
public boolean debug()Returns the value of thedebugrecord component.- Returns:
- the value of the
debugrecord component
-
classAndFields
Returns the value of theclassAndFieldsrecord component.- Returns:
- the value of the
classAndFieldsrecord component
-