Interface TypedGenerator<T>

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

    Modifier and Type
    Method
    Description
    default Class<T>
     
    Generates the next instance.
  • Method Details

    • getType

      default Class<T> getType()
      Returns:
      class information; which type this generator is responsible for.
    • next

      T next()
      Generates the next instance.
      Returns:
      a newly created instance