-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
Choice.Companion
-
Constructor Summary
Constructors Constructor Description Choice()
-
Method Summary
Modifier and Type Method Description final Boolean
addOption(T option)
Adds an option to the available options when choosing. final Boolean
addOptions(T option)
Adds options to the available options when choosing. final Boolean
addOptions(Iterable<T> pOptions)
Adds options to the available options when choosing. T
choose()
Chooses one of the available options and returns it. -
-
Method Detail
-
addOption
final Boolean addOption(T option)
Adds an option to the available options when choosing.
- Parameters:
option
- Option to add
-
addOptions
final Boolean addOptions(T option)
Adds options to the available options when choosing.
- Parameters:
option
- Option to add
-
addOptions
final Boolean addOptions(Iterable<T> pOptions)
Adds options to the available options when choosing.
- Parameters:
pOptions
- Options to add
-
-
-
-