Record Class ClaferModel.Clafer
java.lang.Object
java.lang.Record
org.clafer.ig.ClaferModel.Clafer
- Enclosing class:
ClaferModel
public static record ClaferModel.Clafer(ClaferModel.Id id, String uid, ClaferModel.Value value, List<ClaferModel.Clafer> children)
extends Record
An instance of a clafer: its name, the UID of its clafer, its value
(or null) and its children.
-
Constructor Summary
ConstructorsConstructorDescriptionClafer(ClaferModel.Id id, String uid, ClaferModel.Value value, List<ClaferModel.Clafer> children) Creates an instance of aClaferrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchildren()Returns the value of thechildrenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()final StringtoString()Returns a string representation of this record class.uid()Returns the value of theuidrecord component.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Clafer
public Clafer(ClaferModel.Id id, String uid, ClaferModel.Value value, List<ClaferModel.Clafer> children) Creates an instance of aClaferrecord class.- Parameters:
id- the value for theidrecord componentuid- the value for theuidrecord componentvalue- the value for thevaluerecord componentchildren- the value for thechildrenrecord component
-
-
Method Details
-
name
-
toString
-
hashCode
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
uid
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
children
Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-