Record Class EventValueLink
java.lang.Object
java.lang.Record
ua.mcchickenstudio.opencreative.coding.variables.EventValueLink
- Record Components:
id- id of event value.
This record represents a link to Event value, that can exists or can be empty.
It's used for searching and getting real event value.
-
Constructor Summary
ConstructorsConstructorDescriptionEventValueLink(@NotNull String id, @NotNull Target target) Creates an instance of aEventValueLinkrecord 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.@NotNull Stringid()Returns the value of theidrecord component.@NotNull Targettarget()Returns the value of thetargetrecord component.@NotNull StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EventValueLink
Creates an instance of aEventValueLinkrecord class.- Parameters:
id- the value for theidrecord componenttarget- the value for thetargetrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-