Interface OneOfCollectionGeneratorSpec<T>

Type Parameters:
T - type of value
All Superinterfaces:
GeneratorSpec<T>
All Known Subinterfaces:
OneOfCollectionSpec<T>
All Known Implementing Classes:
OneOfCollectionGenerator

public interface OneOfCollectionGeneratorSpec<T> extends GeneratorSpec<T>
Generator spec for selecting a random value from collection.
Since:
1.0.1
  • Method Summary

    Modifier and Type
    Method
    Description
    oneOf(Collection<T> values)
    Selects a random value from the given choices.
  • Method Details

    • oneOf

      GeneratorSpec<T> oneOf(Collection<T> values)
      Selects a random value from the given choices.
      Parameters:
      values - from which a random value will be selected
      Returns:
      completed spec with no further methods
      Since:
      1.0.1