public abstract class Userdata extends LuaObject
Instances of this class may have a user value attached to them,
accessible using the methods getUserValue()
and setUserValue(Object)
.
Note on equality: according to ยง3.4.4 of the Lua Reference Manual,
userdata a
and b
are expected to be equal if and only if they are
the same object. However, Ordering.isRawEqual(Object, Object)
compares
userdata using Object.equals(Object)
. Exercise caution when overriding
equals()
.
Constructor and Description |
---|
Userdata() |
Modifier and Type | Method and Description |
---|---|
abstract Object |
getUserValue()
Returns the user value attached to this full userdata.
|
abstract Object |
setUserValue(Object value)
Sets the user value attached to this full userdata to
value , returning
the old user value. |
getMetatable, setMetatable
public abstract Object getUserValue()
Copyright © 2016. All rights reserved.