|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrcf.core.util.reference.ThreadLocalReference<T>
@Revision(value="$Revision: 1.6 $",
date="$Date: 2006/12/02 23:14:08 $",
tag="$Name: $")
public class ThreadLocalReference<T>TODO: Javadoc
TODO: Unit tests, Code review, Javadoc review, Seal/Finalize TODO: equals, hashCode, toString
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface rcf.core.util.reference.Reference |
|---|
Reference.Type |
| Field Summary | |
|---|---|
protected rcf.core.util.adapter.TypeAdapterA<Thread,T> |
initial
TODO: Javadoc |
protected rcf.core.util.map.HashSetMap<T,Thread> |
map
TODO: Javadoc |
| Constructor Summary | |
|---|---|
ThreadLocalReference()
TODO: Javadoc |
|
ThreadLocalReference(rcf.core.util.adapter.TypeAdapterA<Thread,T> _initial)
TODO: Javadoc |
|
| Method Summary | |
|---|---|
void |
clear()
TODO: Javadoc |
boolean |
enqueue()
TODO: Javadoc |
T |
get()
TODO: Javadoc Get the content element of this singleton. |
boolean |
isEnqueued()
TODO: Javadoc |
rcf.core.util.map.pair.PMapSet<T,Thread,? extends ImmutablePairInterface<T,Thread>> |
map()
TODO: Javadoc |
T |
set(T a)
TODO: Javadoc Set the content element of this singleton. |
Reference.Type |
type()
TODO: Javadoc |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final rcf.core.util.map.HashSetMap<T,Thread> map
protected final rcf.core.util.adapter.TypeAdapterA<Thread,T> initial
| Constructor Detail |
|---|
public ThreadLocalReference()
public ThreadLocalReference(rcf.core.util.adapter.TypeAdapterA<Thread,T> _initial)
_initial - | Method Detail |
|---|
public void clear()
Reference
clear in interface Reference<T>public boolean enqueue()
Reference
enqueue in interface Reference<T>public T get()
ImmutableSingletonInterface
get in interface ImmutableSingletonInterface<T>public boolean isEnqueued()
Reference
isEnqueued in interface Reference<T>public rcf.core.util.map.pair.PMapSet<T,Thread,? extends ImmutablePairInterface<T,Thread>> map()
public T set(T a)
SingletonInterface
set in interface SingletonInterface<T>a - The new content element of this singleton.
public Reference.Type type()
Reference
type in interface Reference<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||