# Uses of Class org.luaj.vm2.LuaInteger (Luaj API)
Date: 2015-04-29

## Uses of Class
org.luaj.vm2.LuaInteger

Packages that use LuaInteger
org.luaj.vm2

Uses of LuaInteger in org.luaj.vm2

Methods in org.luaj.vm2 that return LuaInteger
`LuaInteger` `LuaDouble.checkinteger()`
`LuaInteger` `LuaInteger.checkinteger()`
`LuaInteger` `LuaString.checkinteger()`
`LuaInteger` `LuaValue.checkinteger()` Check that the value is numeric, and convert and cast value to int, or throw `LuaError` if not numeric
`LuaInteger` `Varargs.checkinteger(int i)` Return argument i as a java int value, or throw an error if not a number or is not representable by a java int.
`LuaInteger` `Varargs.optinteger(int i, LuaInteger defval)` Return argument i as a java int value, `defval` if nil, or throw a LuaError if not a number or is not representable by a java int.
`LuaInteger` `LuaDouble.optinteger(LuaInteger defval)`
`LuaInteger` `LuaInteger.optinteger(LuaInteger defval)`
`LuaInteger` `LuaNil.optinteger(LuaInteger defval)`
`LuaInteger` `LuaString.optinteger(LuaInteger defval)`
`LuaInteger` `LuaValue.optinteger(LuaInteger defval)` Check that optional argument is a number or string convertible to number and return as `LuaInteger`
`static LuaInteger` `LuaInteger.valueOf(int i)`
`static LuaInteger` `LuaValue.valueOf(int i)` Convert java int to a `LuaValue`.

Methods in org.luaj.vm2 with parameters of type LuaInteger
`LuaInteger` `Varargs.optinteger(int i, LuaInteger defval)` Return argument i as a java int value, `defval` if nil, or throw a LuaError if not a number or is not representable by a java int.
`LuaInteger` `LuaDouble.optinteger(LuaInteger defval)`
`LuaInteger` `LuaInteger.optinteger(LuaInteger defval)`
`LuaInteger` `LuaNil.optinteger(LuaInteger defval)`
`LuaInteger` `LuaString.optinteger(LuaInteger defval)`
`LuaInteger` `LuaValue.optinteger(LuaInteger defval)` Check that optional argument is a number or string convertible to number and return as `LuaInteger`

Copyright © 2007-2015 Luaj.org. All Rights Reserved.