|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object local.test.Counter
public class Counter
Constructor Summary | |
---|---|
Counter()
|
Method Summary | |
---|---|
boolean |
await(int value,
long time,
java.util.concurrent.TimeUnit unit)
waits at most time/unit long for a change that reaches the expected value |
void |
dec()
|
int |
getValue()
|
void |
inc()
|
void |
setValue(int value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Counter()
Method Detail |
---|
public void inc()
public void dec()
public int getValue()
public void setValue(int value)
public boolean await(int value, long time, java.util.concurrent.TimeUnit unit)
value
- time
- unit
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |