Interface SizeGeneratorSpec<T>

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

public interface SizeGeneratorSpec<T> extends GeneratorSpec<T>
Generator spec for specifying the size of an object.
Since:
2.13.0
  • Method Details

    • size

      SizeGeneratorSpec<T> size(int size)
      The exact size of the object to generate.
      Parameters:
      size - of the object
      Returns:
      spec builder
      Since:
      2.13.0
    • minSize

      SizeGeneratorSpec<T> minSize(int size)
      The minimum size of the object to generate.
      Parameters:
      size - minimum size (inclusive)
      Returns:
      spec builder
      Since:
      2.13.0
    • maxSize

      SizeGeneratorSpec<T> maxSize(int size)
      The maximum size of the object to generate.
      Parameters:
      size - maximum size (inclusive)
      Returns:
      spec builder
      Since:
      2.13.0