Record Class LinkLogic.Definition
java.lang.Object
java.lang.Record
com.echothree.model.control.core.server.logic.LinkLogic.Definition
- Enclosing class:
LinkLogic
public static record LinkLogic.Definition(LinkType linkType, EntityInstance sourceEntityInstance, EntityInstance targetEntityInstance)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDefinition(LinkType linkType, EntityInstance sourceEntityInstance, EntityInstance targetEntityInstance) Creates an instance of aDefinitionrecord 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.linkType()Returns the value of thelinkTyperecord component.Returns the value of thesourceEntityInstancerecord component.Returns the value of thetargetEntityInstancerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Definition
public Definition(LinkType linkType, EntityInstance sourceEntityInstance, EntityInstance targetEntityInstance) Creates an instance of aDefinitionrecord class.- Parameters:
linkType- the value for thelinkTyperecord componentsourceEntityInstance- the value for thesourceEntityInstancerecord componenttargetEntityInstance- the value for thetargetEntityInstancerecord 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
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). -
linkType
Returns the value of thelinkTyperecord component.- Returns:
- the value of the
linkTyperecord component
-
sourceEntityInstance
Returns the value of thesourceEntityInstancerecord component.- Returns:
- the value of the
sourceEntityInstancerecord component
-
targetEntityInstance
Returns the value of thetargetEntityInstancerecord component.- Returns:
- the value of the
targetEntityInstancerecord component
-