org.python.core
Class PyInteger
public
class
PyInteger
extends PyObject
A builtin python int.
public static final String exposed_name
public PyInteger(
PyType subType, int v)
public PyInteger(int v)
public int asInt(int index)
public long asLong(int index)
public int getValue()
public int hashCode()
public boolean isMappingType()
public boolean isSequenceType()
public String safeRepr()
public String toString()
public Object __coerce_ex__(
PyObject other)
public boolean __nonzero__()
Used for pickling.
Returns: a tuple of (class, (Integer))
public Object __tojava__(Class c)