|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sourceforge.jemm.client.events.SimpleContext
public class SimpleContext
A basic Context implementation that counts the number of thread add and removes. This class is thread safe.
| Constructor Summary | |
|---|---|
SimpleContext()
|
|
| Method Summary | |
|---|---|
void |
add()
Adds to the context the current thread. |
void |
add(java.lang.Thread thread)
Adds to the context a thread. |
boolean |
has()
Calls has with the Thread.currentThread(). |
boolean |
has(java.lang.Thread t)
Returns true if the thread has previously been added to the context otherwise false. |
boolean |
hasAny()
|
void |
remove()
Removes the current thread |
void |
remove(java.lang.Thread t)
Removes the thread from the context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleContext()
| Method Detail |
|---|
public void add(java.lang.Thread thread)
Context
add in interface Contextthread - The thread that ispublic void add()
Context
add in interface ContextContext.add(Thread)public boolean has(java.lang.Thread t)
Context
has in interface Contextt - The thread to look for
public boolean hasAny()
public boolean has()
Context
has in interface Contextpublic void remove(java.lang.Thread t)
Context
remove in interface Contextt - The thread to removepublic void remove()
Context
remove in interface ContextContext.remove(Thread)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||