Package rs.baselib.test
Class RandomSelectBuilder<T>
java.lang.Object
rs.baselib.test.RandomSelectBuilder<T>
- All Implemented Interfaces:
Builder<T>
Provides values randomly from a given list.
- Author:
- ralph
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the previously configured object.withValues
(Collection<T> values) Use the given list as values.withValues
(T[] values) Use the given array as values.
-
Constructor Details
-
RandomSelectBuilder
public RandomSelectBuilder()Constructor.
-
-
Method Details
-
withValues
Use the given list as values.- Parameters:
values
- the value list to pick from- Returns:
- the builder for method chaining
-
withValues
Use the given array as values.- Parameters:
values
- the array list to pick from- Returns:
- the builder for method chaining
-
build
Build the previously configured object.
-