|
||||||||||
| 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.@Revision(value="$Revision: 1.7 $",
date="$Date: 2006/11/09 02:10:05 $",
tag="$Name: $")
public interface ImmutableIterator<T>
TODO: Javadoc
An extension of the ImmutablePosition interface, which adds support
for forking this iterator. Please see rcf.core.util.iterator for a
discussion of the fact that this interface contains no methods for navigating
between positions.
TODO: Javadoc review, Seal/Finalize
| Method Summary | |
|---|---|
ImmutableIterator<T> |
copy()
TODO: Javadoc Return a new iterator which is currently at the same position as this iterator. |
ImmutableIterable<T> |
iterable()
TODO: Javadoc |
| Methods inherited from interface rcf.core.util.position.ImmutablePosition |
|---|
equals, isCompatible, isSentinel |
| Methods inherited from interface rcf.core.util.groups.ImmutableSingletonInterface |
|---|
get |
| Method Detail |
|---|
ImmutableIterator<T> copy()
this iterator. That is, this method will return an iterator
i such that this.equals(i) && this.isCompatible(i)
(notice that equals is symmetric but isCompatible is not). Note that a call to
e.g. ImmutableFixedUniIterator.next(rcf.core.util.filter.Filter)
on this must not affect i and vice-versa.This method is extremely useful in conjunction with position based collections where iteration is expensive or positions have algorithmic importance or higher level semantics.
copy in interface rcf.core.util.Copyablei such that
this.equals(i).ImmutableIterable<T> iterable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||