|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Iterator for digital organisms. It's a bit more efficient to use instead of the general Iterator, because the casting is expensive.
| Method Summary | |
DigitalOrganism |
getFirst()
Returns the first organism. |
DigitalOrganism |
getLast()
Returns the last organism. |
boolean |
hasNext()
Returns true if there is at least one organism more. |
boolean |
hasPrevious()
Returns true if there is at least one organism before the current. |
DigitalOrganism |
next()
Returns the next DigitalOrganism from this collection. |
DigitalOrganism |
previous()
Returns the previous DigitalOrganism from this collection. |
DigitalOrganism |
randomly()
Returns one organism from the underlying collection. |
void |
reset()
Resets the iterator: the enumerating of organisms can be repeated from the begining.. |
| Method Detail |
public boolean hasNext()
public DigitalOrganism next()
public boolean hasPrevious()
public DigitalOrganism previous()
public DigitalOrganism getFirst()
public DigitalOrganism getLast()
public DigitalOrganism randomly()
public void reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||