public interface Generator<T> extends Iterator<T>
Generator
generates objects of a dedicated type in mass production.
The generated objects may have special characteristics or qualities, e.g the
objects may be system wide unique from each other. These characteristics are
implementation depended. The Iterator
patters has been chosen to make
the generator team up with the java collections framework.Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
|
T |
next()
Generates a next item.
|
forEachRemaining, remove
Copyright © 2015. All rights reserved.