StateBuilderSteps.BuildStepState.Builderpublic static interface StateBuilderSteps.OnOffStep
| Modifier and Type | Method | Description |
|---|---|---|
default State |
keepCurrentState() |
Keeps the current state of the light to which this state is assigned: if it's on,
it stays on, and if it's off, it stays off.
|
default State |
off() |
Creates a new
State that will turn off the light to which it is assigned. |
default State |
on() |
Creates a new
State that will turn on the light to which it is assigned. |
State |
on(Boolean on) |
default State on()
State that will turn on the light to which it is assigned.
A shorthand method for on(true). Avoid calling in vain if you know the light is on already.State.default State off()
State that will turn off the light to which it is assigned.
A shorthand method for on(false).State.default State keepCurrentState()
on(null).State.Copyright © 2019. All rights reserved.