Interface OptionalGeneratorSpec<T>

Type Parameters:
T - the type of value
All Superinterfaces:
GeneratorSpec<Optional<T>>

public interface OptionalGeneratorSpec<T> extends GeneratorSpec<Optional<T>>
Generator spec for Optional.
Since:
2.14.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Specifies that an empty Optional can be generated.
  • Method Details

    • allowEmpty

      GeneratorSpec<Optional<T>> allowEmpty()
      Specifies that an empty Optional can be generated.
      Returns:
      spec builder
      Since:
      2.14.0