|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrcf.core.util.groups.ImmutableSingleton<A>
A - The type of the content element in each singleton.@Revision(value="$Revision: 1.27 $",
date="$Date: 2006/11/14 15:47:41 $",
tag="$Name: $")
public class ImmutableSingleton<A>
TODO: Javadoc
Provides a simple, type safe (generic) wrapper which can encapsulate a single
reference. Alone this class is practically useless, as it provides no benefit
above a simple final reference. However in conjunction with the
rcf.core.util.collection.position package or the ImmutablePair
class, this class provides a vital base.
| Nested Class Summary | |
|---|---|
static class |
ImmutableSingleton.Accessor<A>
TODO: Javadoc Wrap an accessor to form an accessor which will operate over singletons. |
static class |
ImmutableSingleton.Iterable<A>
TODO: Javadoc Wrap a single immutable iterable collection, create an immutable iterable over singletons of elements. |
static class |
ImmutableSingleton.Iterator<A>
TODO: Javadoc Wrap a single immutable iterator, create an immutable iterator over singletons of elements. |
| Field Summary | |
|---|---|
protected A |
a
TODO: Javadoc The content element to store. |
| Constructor Summary | |
|---|---|
ImmutableSingleton(A _a)
TODO: Javadoc Base constructor, simply records the content element for this object. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
A |
get()
TODO: Javadoc Get the content element of this singleton. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final A a
| Constructor Detail |
|---|
public ImmutableSingleton(A _a)
_a - The content element to store.| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic A get()
ImmutableSingletonInterface
get in interface ImmutableSingletonInterface<A>public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||