Module litebridge.orm
Package org.litebridge.orm.persistence
Record Class DtoConstructor.FieldAccessorValue
java.lang.Object
java.lang.Record
org.litebridge.orm.persistence.DtoConstructor.FieldAccessorValue
- Record Components:
field- TheFieldAccessorinstance representing the field to be accessed or manipulated. Must not benulland provides field-level metadata and interaction capabilities.value- The value associated with the specified field. Can benullif the field allows null values.
- Enclosing class:
DtoConstructor
public static record DtoConstructor.FieldAccessorValue(FieldAccessor field, @Nullable Object value)
extends Record
A pair consisting of a
FieldAccessor and its corresponding value.
This record is primarily used for associating a specific field of a Data Transfer Object (DTO) with its resolved value, often for the purpose of constructing DTOs or mapping data to their fields.
The field represents the metadata and manipulation methods for a given field or property
in a DTO, while the value refers to the value assigned to that field.
-
Constructor Summary
ConstructorsConstructorDescriptionFieldAccessorValue(FieldAccessor field, @Nullable Object value) Creates an instance of aFieldAccessorValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.@Nullable Objectvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
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). -
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-