Package com.kazforge.jsonapi.patch
Record Class StructuredMemberState.Structured
java.lang.Object
java.lang.Record
com.kazforge.jsonapi.patch.StructuredMemberState.Structured
- All Implemented Interfaces:
StructuredMemberState
- Enclosing interface:
StructuredMemberState
public static record StructuredMemberState.Structured(List<StructuredMember> members)
extends Record
implements StructuredMemberState
A supplied structured nested value; an empty list is a supplied empty structured object.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.kazforge.jsonapi.patch.StructuredMemberState
StructuredMemberState.Atomic, StructuredMemberState.Structured -
Constructor Summary
ConstructorsConstructorDescriptionStructured(List<StructuredMember> members) Creates an instance of aStructuredrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.members()Returns the value of themembersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Structured
Creates an instance of aStructuredrecord class.- Parameters:
members- the value for themembersrecord 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). -
members
Returns the value of themembersrecord component.- Returns:
- the value of the
membersrecord component
-