Package org.openhab.core.types
Class CommandDescriptionBuilder
java.lang.Object
org.openhab.core.types.CommandDescriptionBuilder
Used to build instances of
CommandDescription.- Author:
- Henning Treu - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build aCommandDescriptionfrom the values of this builder.static CommandDescriptionBuildercreate()Create and return a fresh builder instance.withCommandOption(CommandOption commandOption) Add aCommandOptionfor the resultingCommandDescription.withCommandOptions(List<CommandOption> commandOptions) Set theCommandOptions for the resultingCommandDescription.
-
Method Details
-
create
Create and return a fresh builder instance.- Returns:
- a fresh
CommandDescriptionBuilderinstance.
-
build
Build aCommandDescriptionfrom the values of this builder.- Returns:
- a
CommandDescriptionfrom the values of this builder.
-
withCommandOption
Add aCommandOptionfor the resultingCommandDescription.- Parameters:
commandOption- aCommandOptionfor the resultingCommandDescription.- Returns:
- this builder.
-
withCommandOptions
Set theCommandOptions for the resultingCommandDescription.- Parameters:
commandOptions- theCommandOptions for the resultingCommandDescription.- Returns:
- this builder.
-