All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.RefInt

java.lang.Object
   |
   +----Acme.RefInt

public class RefInt
extends Object
RefInt - a reference to an int

Used to pass ints to methods by reference, so they can be modified. You can't use the standard Integer/Long/Float/Double classes for this, because they are immutable - the number they represent can't be changed once the object is created. With these Ref classes, on the other hand, you can change the value all you want

Fetch the software.
Fetch the entire Acme package.

See Also:
RefDouble, RefFloat, RefLong

Variable Index

 o val

Constructor Index

 o RefInt()
 o RefInt(int)

Variables

 o val
 public int val

Constructors

 o RefInt
 public RefInt()
 o RefInt
 public RefInt(int val)

All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs