net.sf.gridarta.model.mapmodel
private static class FilterGameObjectIteratorTest.ArrayGameObjectIterator extends Object implements Iterator<TestGameObject>
Iterator
that returns a fixed list of GameObjects
.Modifier and Type | Field and Description |
---|---|
private TestGameObject[] |
gameObjects
The
GameObjects to return. |
private int |
index
The current index into
gameObjects . |
Modifier | Constructor and Description |
---|---|
private |
FilterGameObjectIteratorTest.ArrayGameObjectIterator(TestGameObject... gameObjects)
Creates a new instance.
|
@NotNull private final TestGameObject[] gameObjects
GameObjects
to return.private int index
gameObjects
.private FilterGameObjectIteratorTest.ArrayGameObjectIterator(@NotNull TestGameObject... gameObjects)
gameObjects
- the game objects to returnpublic boolean hasNext()
hasNext
in interface Iterator<TestGameObject>
public TestGameObject next()
next
in interface Iterator<TestGameObject>
public void remove()
remove
in interface Iterator<TestGameObject>
Feedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.