public class BookManager.SectionMObjIterator extends java.lang.Object implements java.util.Iterator<MObj>
Constructor and Description |
---|
SectionMObjIterator(MObj[][] s)
Sole Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns true if there is another MObj to return within the
two-dimensional array.
|
MObj |
next()
Returns the next MObj within the two-dimensional array.
|
void |
remove()
Not supported.
|
public SectionMObjIterator(MObj[][] s)
Note: the input array must not contain any null (empty) array entries. It is assumed to be completely full (though the idea of arrays with padding was considered, it was rejected ... for now.)
s
- two-dimensional array of MObjs by Section and MObjNbr within
Section.public MObj next()
next
in interface java.util.Iterator<MObj>
java.util.NoSuchElementException
- if there are no more MObjs to return.public boolean hasNext()
hasNext
in interface java.util.Iterator<MObj>
public void remove()
remove
in interface java.util.Iterator<MObj>
java.lang.UnsupportedOperationException
- if called.