Interface OneOfCollectionSpec<T>
- Type Parameters:
T- type of value
- All Superinterfaces:
GeneratorSpec<T>,Supplier<T>,ValueSpec<T>
Spec for selecting a random value from a collection.
- Since:
- 2.6.0
-
Method Summary
Modifier and TypeMethodDescriptiononeOf(Collection<T> values) Selects 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:
- spec builder
- Since:
- 2.6.0
-