com.limegroup.gnutella.util
Class IntWrapper

java.lang.Object
  extended bycom.limegroup.gnutella.util.IntWrapper

public final class IntWrapper
extends java.lang.Object

Simple int wrapper class that lets you set the value at any time. Useful for changing the value of objects stored in Maps or Lists, without having to access the object every time. Just keep the handle to this instance and set/get it.


Constructor Summary
IntWrapper(int x)
           
 
Method Summary
 int addInt(int x)
           
 int getInt()
           
 void setInt(int x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntWrapper

public IntWrapper(int x)
Method Detail

getInt

public int getInt()

setInt

public void setInt(int x)

addInt

public int addInt(int x)