|
||||||||||
| 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 wrap| Method Detail |
|---|
public void add(int v)
v - public double doubleValue()
doubleValue in class Numberpublic float floatValue()
floatValue in class Numberpublic int get()
public void increment()
public int intValue()
intValue in class Numberpublic long longValue()
longValue in class Numberpublic 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 | |||||||||