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 aCommandDescription
from the values of this builder.static CommandDescriptionBuilder
create()
Create and return a fresh builder instance.withCommandOption
(CommandOption commandOption) Add aCommandOption
for the resultingCommandDescription
.withCommandOptions
(List<CommandOption> commandOptions) Set theCommandOption
s for the resultingCommandDescription
.
-
Method Details
-
create
Create and return a fresh builder instance.- Returns:
- a fresh
CommandDescriptionBuilder
instance.
-
build
Build aCommandDescription
from the values of this builder.- Returns:
- a
CommandDescription
from the values of this builder.
-
withCommandOption
Add aCommandOption
for the resultingCommandDescription
.- Parameters:
commandOption
- aCommandOption
for the resultingCommandDescription
.- Returns:
- this builder.
-
withCommandOptions
Set theCommandOption
s for the resultingCommandDescription
.- Parameters:
commandOptions
- theCommandOption
s for the resultingCommandDescription
.- Returns:
- this builder.
-