gzz.zzutil
Class RankList
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--java.util.AbstractSequentialList
|
+--gzz.zzutil.RankList
- All Implemented Interfaces:
- java.util.Collection, java.util.List
- public class RankList
- extends java.util.AbstractSequentialList
An immutable implementation of List representing a rank of cells.
Any cell on the rank can be passed to the constructor, but the list
always starts with the headcell on the rank. In the case of a looping
rank, the list is considered to end at the first cell negwards from the
headcell.
Modifications made to the space
result in undefined behavior. :( (FIXME: throw errors?)
Field Summary |
static java.lang.String |
rcsid
|
Fields inherited from class java.util.AbstractList |
modCount |
Methods inherited from class java.util.AbstractSequentialList |
add, addAll, get, iterator, remove, set |
Methods inherited from class java.util.AbstractList |
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
rcsid
public static final java.lang.String rcsid
- See Also:
- Constant Field Values
RankList
public RankList(Cell onRank,
Dim dim)
listIterator
public java.util.ListIterator listIterator(int index)
- Specified by:
listIterator
in interface java.util.List
- Specified by:
listIterator
in class java.util.AbstractSequentialList
size
public int size()
- Specified by:
size
in interface java.util.List
- Specified by:
size
in class java.util.AbstractCollection