Package org.instancio.generator.specs
Interface OneOfArrayGeneratorSpec<T>
- Type Parameters:
T
- type of value
- All Superinterfaces:
GeneratorSpec<T>
- All Known Subinterfaces:
OneOfArraySpec<T>
- All Known Implementing Classes:
OneOfArrayGenerator
Generator spec for selecting a random value from an array.
- Since:
- 1.0.1
-
Method Summary
Modifier and TypeMethodDescriptionSelects a random value from the given choices.
-
Method Details
-
oneOf
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
-