|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectix.util.context.ContextInt
public class ContextInt
An object that contains a single context-dependent int value.
Field Summary | |
---|---|
(package private) ContextHolder |
holder
|
(package private) ContextLink |
link
|
Constructor Summary | |
---|---|
ContextInt(ContextHolder holder,
int rootValue)
|
|
ContextInt(int rootValue)
|
Method Summary | |
---|---|
int |
add(int incr)
Increment by the indicated amount, then return the new value. |
int |
get()
|
int |
incrAfter()
Increment then return the old value. |
int |
incrBefore()
Increment then return the new value. |
void |
set(int new_value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
ContextHolder holder
ContextLink link
Constructor Detail |
---|
public ContextInt(int rootValue)
public ContextInt(ContextHolder holder, int rootValue)
Method Detail |
---|
public int get()
public void set(int new_value)
public int add(int incr)
public int incrBefore()
public int incrAfter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |