public class SimpleGenerator extends BaseFixtureGenerator
| Constructor and Description |
|---|
SimpleGenerator(Class generatedClass,
int quantity) |
| Modifier and Type | Method and Description |
|---|---|
Class |
getGeneratedClass()
Returns the class of generated entities.
|
boolean |
hasNext()
Returns
true if the generator has more entity to generate (In other words, returns true if
next() would return an entity rather than throwing an exception.) |
Object |
next()
Returns the next generated entity.
|
removepublic SimpleGenerator(Class generatedClass, int quantity)
generatedClass - he class to instantiate to create the entity.quantity - the amount of entities to return.public boolean hasNext()
true if the generator has more entity to generate (In other words, returns true if
next() would return an entity rather than throwing an exception.)true if the iteration has more elements.public Object next()
NoSuchElementException - if the iteration has no more elements.public Class getGeneratedClass()
Copyright © 2014. All Rights Reserved.