Package org.instancio.generator.specs
Interface OneOfArraySpec<T>
- Type Parameters:
T
- type of value
- All Superinterfaces:
GeneratorSpec<T>
,OneOfArrayGeneratorSpec<T>
,ValueSpec<T>
- All Known Implementing Classes:
OneOfArrayGenerator
Spec for selecting a random value from an array.
- Since:
- 2.6.0
-
Method Summary
Modifier and TypeMethodDescriptionSelects a random value from the given choices.
-
Method Details
-
oneOf
Description copied from interface:OneOfArrayGeneratorSpec
Selects a random value from the given choices.- Specified by:
oneOf
in interfaceOneOfArrayGeneratorSpec<T>
- Parameters:
values
- from which a random value will be selected- Returns:
- completed spec with no further methods
-