Record Class NodeValue.Json
java.lang.Object
java.lang.Record
com.soulfiremc.server.script.NodeValue.Json
- All Implemented Interfaces:
NodeValue
- Enclosing interface:
NodeValue
-
Nested Class Summary
Nested classes/interfaces inherited from interface NodeValue
NodeValue.Bot, NodeValue.Json, NodeValue.ValueList -
Constructor Summary
ConstructorsConstructorDescriptionJson(com.google.gson.JsonElement element) Creates an instance of aJsonrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonElementelement()Returns the value of theelementrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.
-
Constructor Details
-
Json
public Json(com.google.gson.JsonElement element) Creates an instance of aJsonrecord class.- Parameters:
element- the value for theelementrecord component
-
-
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). -
element
public com.google.gson.JsonElement element()Returns the value of theelementrecord component.- Returns:
- the value of the
elementrecord component
-