Record Class ScriptMetadataAPI
java.lang.Object
java.lang.Record
com.soulfiremc.server.script.api.ScriptMetadataAPI
-
Constructor Summary
ConstructorsConstructorDescriptionScriptMetadataAPI(MetadataHolder metadata) Creates an instance of aScriptMetadataAPIrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.org.graalvm.polyglot.Valueorg.graalvm.polyglot.ValuegetAndRemove(String namespace, String key) org.graalvm.polyglot.ValuegetOrDefault(String namespace, String key, org.graalvm.polyglot.Value defaultValue) org.graalvm.polyglot.Valuefinal inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.voidvoidfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScriptMetadataAPI
Creates an instance of aScriptMetadataAPIrecord class.- Parameters:
metadata- the value for themetadatarecord component
-
-
Method Details
-
getOrSet
-
getOrDefault
-
get
-
set
-
remove
-
getAndRemove
-
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). -
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-