Module litebridge.orm
Package org.litebridge.orm.persistence
Record Class DtoConstructor.MappingInfo
java.lang.Object
java.lang.Record
org.litebridge.orm.persistence.DtoConstructor.MappingInfo
- Record Components:
constructor- The constructor method handledefaultConstructorUsed- Whether the consructor is a default (no arg) constructorcanonicalConstructorFieldAccessors- The field accessors for the canonical constructor
- Enclosing class:
DtoConstructor
public static record DtoConstructor.MappingInfo(MethodHandle constructor, boolean defaultConstructorUsed, List<FieldAccessor> canonicalConstructorFieldAccessors)
extends Record
Information about a particular constructor.
-
Constructor Summary
ConstructorsConstructorDescriptionMappingInfo(MethodHandle constructor, boolean defaultConstructorUsed, List<FieldAccessor> canonicalConstructorFieldAccessors) Creates an instance of aMappingInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecanonicalConstructorFieldAccessorsrecord component.Returns the value of theconstructorrecord component.booleanReturns the value of thedefaultConstructorUsedrecord 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
-
MappingInfo
public MappingInfo(MethodHandle constructor, boolean defaultConstructorUsed, List<FieldAccessor> canonicalConstructorFieldAccessors) Creates an instance of aMappingInforecord class.- Parameters:
constructor- the value for theconstructorrecord componentdefaultConstructorUsed- the value for thedefaultConstructorUsedrecord componentcanonicalConstructorFieldAccessors- the value for thecanonicalConstructorFieldAccessorsrecord 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 '=='. -
constructor
Returns the value of theconstructorrecord component.- Returns:
- the value of the
constructorrecord component
-
defaultConstructorUsed
public boolean defaultConstructorUsed()Returns the value of thedefaultConstructorUsedrecord component.- Returns:
- the value of the
defaultConstructorUsedrecord component
-
canonicalConstructorFieldAccessors
Returns the value of thecanonicalConstructorFieldAccessorsrecord component.- Returns:
- the value of the
canonicalConstructorFieldAccessorsrecord component
-