Package dev.selena.luacore.utils.lua
Record Class LuaArgValue
java.lang.Object
java.lang.Record
dev.selena.luacore.utils.lua.LuaArgValue
- Record Components:
name
- The name or key that will be used to get the value in the Luavalue
- The value of the argument variable
Used for parsing args into the Lua script using
runScript
-
Constructor Summary
ConstructorDescriptionLuaArgValue
(String name, Object value) Creates an instance of aLuaArgValue
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Used to get the argument variable namefinal String
toString()
Returns a string representation of this record class.value()
Used to get the value of the argument variable
-
Constructor Details
-
Method Details
-
name
Used to get the argument variable name- Returns:
- The argument variable name
-
value
Used to get the value of the argument variable- Returns:
- The value of the argument variable
-
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)
.
-