com.softwareag.ino.sxs
Class ShortRef

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

public class ShortRef
extends java.lang.Object

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


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

Constructor Detail

ShortRef

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


ShortRef

public ShortRef(short initVal)
Constructor to initialize the ShortRef with the given value.

Parameters:
initVal - the initial value
Method Detail

getVal

public short getVal()
Gets the current value of the ShortRef.

Returns:
the current value

setVal

public void setVal(short newVal)
Sets the value of the ShortRef to a given value.

Parameters:
newVal - the new value