|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Number
me.lemire.integercompression.IntWrapper
public final class IntWrapper
Essentially a mutable wrapper around an integer.
Constructor Summary | |
---|---|
IntWrapper()
Constructor: value set to 0. |
|
IntWrapper(int v)
Construction: value set to provided argument. |
Method Summary | |
---|---|
void |
add(int v)
|
double |
doubleValue()
|
float |
floatValue()
|
int |
get()
|
void |
increment()
add 1 to the integer value |
int |
intValue()
|
long |
longValue()
|
void |
set(int value)
Set the value to that of the specified integer. |
String |
toString()
|
Methods inherited from class java.lang.Number |
---|
byteValue, shortValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IntWrapper()
public IntWrapper(int v)
v
- value to wrapMethod Detail |
---|
public void add(int v)
v
- public double doubleValue()
doubleValue
in class Number
public float floatValue()
floatValue
in class Number
public int get()
public void increment()
public int intValue()
intValue
in class Number
public long longValue()
longValue
in class Number
public void set(int value)
value
- specified integer valuepublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |