|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - The type of the elements which are stored at positions in the
backing abstract data structure.@Revision(value="$Revision: 1.6 $",
date="$Date: 2006/12/16 17:53:21 $",
tag="$Name: $")
public interface ImmutablePosition<T>
The simplest kind of immutable position representing an element in an abstract
data structure. This interface implies no spatial relationships and no
accessor methods beyond ImmutableSingletonInterface.get(). See the
package level documentation rcf.core.util.position for more
information about positions.
TODO: Javadoc review, Seal/Finalize
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Determine if the specified object is an instance of ImmutablPposition which represents the same position in the
same abstract data structure, as this object. |
boolean |
isCompatible(ImmutablePosition<T> p)
Determine if this position is compatible to, i.e. |
boolean |
isSentinel()
Determine if this position is a sentinel; i.e. |
| Methods inherited from interface rcf.core.util.groups.ImmutableSingletonInterface |
|---|
get |
| Method Detail |
|---|
boolean equals(Object o)
ImmutablPposition which represents the same position in the
same abstract data structure, as this object. Notice that for positions
p and q, p.equals(q) implies
p.isCompatible(q) && q.isCompatible(p).
equals in class Objecto - The object to compare this one to, for equality.
true if this position and the one specified
represent the same position, in the same abstract data structure.boolean isCompatible(ImmutablePosition<T> p)
true even for sentinel positions). This method should never
throw exceptions (especially IncompatiblePositionException) as it
is a test to avoid them.
p - The position to determine if this one is compatible to.
true indicates that this position and the specified
one belong to the same abstract data structure.boolean isSentinel()
true if this is a sentinel position.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||