|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrcf.core.util.reference.AtomicReference<T>
@Revision(value="$Revision: 1.1 $",
date="$Date: 2006/12/02 23:12:43 $",
tag="$Name: $")
public class AtomicReference<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 | |
|---|---|
private T |
a
TODO: Javadoc |
private static long |
offset
TODO: Javadoc |
private static sun.misc.Unsafe |
unsafe
TODO: Javadoc |
| Constructor Summary | |
|---|---|
AtomicReference(T referent)
TODO: Javadoc |
|
| Method Summary | |
|---|---|
void |
clear()
TODO: Javadoc |
boolean |
compareAndSet(T expect,
T t)
|
boolean |
enqueue()
TODO: Javadoc |
boolean |
equals(Object o)
|
T |
get()
TODO: Javadoc Get the content element of this singleton. |
int |
hashCode()
|
boolean |
isEnqueued()
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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final sun.misc.Unsafe unsafe
private static final long offset
private volatile T a
| Constructor Detail |
|---|
public AtomicReference(T referent)
referent - | Method Detail |
|---|
public void clear()
Reference
clear in interface Reference<T>
public boolean compareAndSet(T expect,
T t)
compareAndSet in interface rcf.core.concurrent.primitives.Atomic<T>public boolean enqueue()
Reference
enqueue in interface Reference<T>public boolean equals(Object o)
equals in class Objectpublic T get()
ImmutableSingletonInterface
get in interface ImmutableSingletonInterface<T>public int hashCode()
hashCode in class Objectpublic boolean isEnqueued()
Reference
isEnqueued in interface Reference<T>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 | |||||||||