|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.common.model.Map.MapIterator
private abstract class Map.MapIterator
Base class for internal iterators.
| Field Summary | |
|---|---|
protected Map.Direction[] |
directions
|
| Constructor Summary | |
|---|---|
private |
Map.MapIterator()
|
| Method Summary | |
|---|---|
Map.Position |
next()
Returns the next element in the iteration. |
abstract Map.Position |
nextPosition()
Get the next position as a position rather as an object. |
void |
remove()
Removes from the underlying collection the last element returned by the iterator (optional operation). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Iterator |
|---|
hasNext |
| Field Detail |
|---|
protected Map.Direction[] directions
| Constructor Detail |
|---|
private Map.MapIterator()
| Method Detail |
|---|
public abstract Map.Position nextPosition()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - if iterator is exhausted.public Map.Position next()
next in interface java.util.Iterator<Map.Position>java.util.NoSuchElementException - iteration has no more elements.public void remove()
remove in interface java.util.Iterator<Map.Position>java.lang.UnsupportedOperationException - no matter what.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||