Interface SubtypeGeneratorSpec<T>

Type Parameters:
T - generated type
All Superinterfaces:
GeneratorSpec<T>
All Known Subinterfaces:
ArrayGeneratorSpec<T>, CollectionGeneratorSpec<T>, MapGeneratorSpec<K,V>

public interface SubtypeGeneratorSpec<T> extends GeneratorSpec<T>
Provides a method for specifying a specific subtype that should be generated.
Since:
2.7.0
  • Method Summary

    Modifier and Type
    Method
    Description
    subtype(Class<?> type)
    Specifies the subtype that should be generated.
  • Method Details

    • subtype

      SubtypeGeneratorSpec<T> subtype(Class<?> type)
      Specifies the subtype that should be generated.
      Parameters:
      type - the subtype to generate
      Returns:
      spec builder instance
      Since:
      2.7.0