Record Class SerializedVariable
java.lang.Object
java.lang.Record
io.github.syst3ms.skriptparser.variables.SerializedVariable
- Record Components:
name- The name of the variable.value- The serialized value of the variable.A value of
nullindicates the variable will be deleted.
public record SerializedVariable(String name, @Nullable SerializedVariable.Value value)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA serialized value of a variable. -
Constructor Summary
ConstructorsConstructorDescriptionSerializedVariable(String name, @Nullable SerializedVariable.Value value) Creates a new serialized variable with the given name and value. -
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.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
SerializedVariable
Creates a new serialized variable with the given name and value.- Parameters:
name- the given name.value- the given value, ornullto indicate a deletion.
-
-
Method Details
-
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). -
name
-
value
-