com.softwareag.ino.sxs
Class IntRef

java.lang.Object
  extended by com.softwareag.ino.sxs.IntRef

public class IntRef
extends java.lang.Object

Auxiliary class to represent references to integers. It is used for integers as output parameters.


Constructor Summary
IntRef()
          Default constructor initializes the IntRef with 0.
IntRef(int initVal)
          Constructor to initialize the IntRef with the given value.
 
Method Summary
 int getVal()
          Gets the current value of the IntRef.
 void setVal(int newVal)
          Sets the value of the IntRef to a given value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntRef

public IntRef()
Default constructor initializes the IntRef with 0.


IntRef

public IntRef(int initVal)
Constructor to initialize the IntRef with the given value.

Parameters:
initVal - the initial value
Method Detail

getVal

public int getVal()
Gets the current value of the IntRef.

Returns:
the current value

setVal

public void setVal(int newVal)
Sets the value of the IntRef to a given value.

Parameters:
newVal - the new value