Integer

The class Integer is the base class of the classes   and  . is the class of all integers within a certain machine-dependent range that can be implemented more efficiently than  can. defines signed integers with range limited only by available memory.

Arithmetic involving only  and   will produce a   if the result is small enough, and   otherwise. The two types are thus more or less interchangeable and the programmer will seldom if ever need to worry about the difference between them.

Inherits:.

Mixins:  (from  ),.

Methods
Except as noted, all methods are available for both  and   objects.