Module litebridge.orm
Package org.litebridgedb.orm.persistence
Record Class DtoConstructor.ConstructionResult<DTO>
java.lang.Object
java.lang.Record
org.litebridgedb.orm.persistence.DtoConstructor.ConstructionResult<DTO>
- Enclosing class:
DtoConstructor
-
Constructor Summary
ConstructorsConstructorDescriptionConstructionResult(DTO dto, boolean defaultConstructorUsed) Creates an instance of aConstructionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedefaultConstructorUsedrecord component.dto()Returns the value of thedtorecord 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
-
ConstructionResult
Creates an instance of aConstructionResultrecord class.- Parameters:
dto- the value for thedtorecord componentdefaultConstructorUsed- the value for thedefaultConstructorUsedrecord 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 '=='. -
dto
Returns the value of thedtorecord component.- Returns:
- the value of the
dtorecord component
-
defaultConstructorUsed
public boolean defaultConstructorUsed()Returns the value of thedefaultConstructorUsedrecord component.- Returns:
- the value of the
defaultConstructorUsedrecord component
-