public class EntityIterator extends Object
Constructor and Description |
---|
EntityIterator(Iterator iter)
Creates a new instance of EntityIterator
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns true if another Entity is available, false otherwise
|
Entity |
next()
Returns the next available entity
|
public EntityIterator(Iterator iter)
iter
- Iterator containing all entitiespublic boolean hasNext()
public Entity next()