Package org.instancio

Interface GeneratorSpecProvider<V>

Type Parameters:
V - generated object type
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface GeneratorSpecProvider<V>
Provides access to built-in generators that support customisation of generated values using the API.
Since:
2.2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a customised generator spec.
  • Method Details

    • getSpec

      GeneratorSpec<V> getSpec(Generators gen)
      Returns a customised generator spec.
      Parameters:
      gen - specs available out of the box
      Returns:
      generator spec