There will be one instance of this class, {@link LuaValue#NIL}, per Java virtual machine. However, the {@link Varargs} instance {@link LuaValue#NONE}which is the empty list, is also considered treated as a nil value by default.
Although it is possible to test for nil using Java == operator, the recommended approach is to use the method {@link LuaValue#isnil()} instead. By using that any ambiguities between {@link LuaValue#NIL} and {@link LuaValue#NONE} are avoided. @see LuaValue @see LuaValue#NIL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|