Flushable
, SensibleUi
DefaultConfigurableSensibleUi
public interface ConfigurableSensibleUi extends SensibleUi
SensibleUi
that can be configured.
Configuration occurs by converting this UI into a builder on which mutations can be performed and then converting the builder back into a new UI instance that can replace the original.
Modifier and Type | Interface | Description |
---|---|---|
static interface |
ConfigurableSensibleUi.Builder |
A builder for creating
ConfigurableSensibleUi instances. |
Modifier and Type | Method | Description |
---|---|---|
ConfigurableSensibleUi.Builder |
toBuilder() |
Converts this UI into a builder.
|
debug, error, flush, note, prompt, promptChoice, promptPassword, status, warn, write, writeStderr
ConfigurableSensibleUi.Builder toBuilder()
The conversion between a UI and a builder is lossless. For example, if a default value is used in a UI because it was not explicitly set in the builder from which it was created, the builder returned by invoking this method on that UI would again consider the value to not be set.