|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.obsearch.index.utils.IntegerHolder
public class IntegerHolder
This class holds an integer.
Constructor Summary | |
---|---|
IntegerHolder(int value)
Public constructor. |
Method Summary | |
---|---|
void |
add(int x)
adds the value of x to this object's integer value. |
int |
compareTo(IntegerHolder o)
Compares this IntegerHolder to another IntegerHolder. |
void |
dec()
Decrement the integer by 1. |
int |
getValue()
|
void |
inc()
Increment the integer by 1. |
void |
setValue(int value)
Sets the value of the internal integer. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IntegerHolder(int value)
value
- the value to set.Method Detail |
---|
public int getValue()
public void setValue(int value)
value
- The new value.public void inc()
public void dec()
public String toString()
toString
in class Object
public void add(int x)
x
- the value to add.public int compareTo(IntegerHolder o)
compareTo
in interface Comparable<IntegerHolder>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |