- Type Parameters:
T- identifying the type of objects to be generated
- All Known Implementing Classes:
BlindTextGenerator,CityGenerator,CollectionGenerator,DecoratorGenerator,DistinguishedNamesGenerator,EmailGenerator,FloatObjectGenerator,FullNameGenerator,LocalDateGenerator,LocalDateTimeGenerator,LocalTimeGenerator,MailSubjectGenerator,NonBlankStringGenerator,NumberGenerator,PersonGenerator,PhoneNumberGenerator,QuickCheckGeneratorAdapter,ShortObjectGenerator,StreetGenerator,StreetNameGenerator,URLGenerator,UUIDGenerator,UUIDStringGenerator,ZipCodeGenerator,ZonedDateTimeGenerator,ZoneOffsetGenerator
public interface TypedGenerator<T>
A generator creates instances of type T. The method
getType()
provides a default implementation using next() and reading the
concrete Class of the returned element.- Author:
- Oliver Wolff
-
Method Summary
-
Method Details
-
getType
- Returns:
- class information; which type this generator is responsible for.
-
next
Generates the next instance.- Returns:
- a newly created instance
-