|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.freecol.common.model.Player.UnitIterator
public class Player.UnitIterator
An Iterator
of Unit
s that can be made active.
Constructor Summary | |
---|---|
Player.UnitIterator(Player owner,
Player.UnitPredicate predicate)
Creates a new NextActiveUnitIterator . |
Method Summary | |
---|---|
boolean |
hasNext()
|
Unit |
next()
|
void |
remove()
Removes from the underlying collection the last element returned by the iterator (optional operation). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Player.UnitIterator(Player owner, Player.UnitPredicate predicate)
NextActiveUnitIterator
.
owner
- The Player
that needs an iterator of it's
units.predicate
- An object for deciding whether a Unit
should be included in the Iterator
or not.Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<Unit>
public Unit next()
next
in interface java.util.Iterator<Unit>
public void remove()
remove
in interface java.util.Iterator<Unit>
java.lang.UnsupportedOperationException
- no matter what.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |