compress
Class IntWrapper

java.lang.Object
  |
  +--compress.IntWrapper

public class IntWrapper
extends java.lang.Object

Wraps around a primitive int so that it can be passed by reference instead of by value.

Author:
Prashant Singh

Field Summary
private  int _value
           
 
Constructor Summary
IntWrapper()
           
 
Method Summary
 int getValue()
          Gets the value of the IntWrapper
 void setValue(int value)
          Sets the value of the IntWrapper
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

_value

private int _value
Constructor Detail

IntWrapper

public IntWrapper()
Method Detail

getValue

public int getValue()
Gets the value of the IntWrapper
Returns:
The value

setValue

public void setValue(int value)
Sets the value of the IntWrapper
Parameters:
int - The new value