protected abstract class EditorBuilder.AbstractConditional<ELEMENT> extends Object implements EditorBuilder.Conditional<ELEMENT>
| Modifier and Type | Method and Description |
|---|---|
protected EditorBuilder |
apply() |
protected abstract ELEMENT |
getElement() |
EditorBuilder |
otherwiseApply(Consumer<ELEMENT> builder)
Defines a configuration to be applied if condition is not met.
|
EditorBuilder.Conditional |
then(Consumer<ELEMENT> builder)
Defines a configuration to be applied if condition is met
|
EditorBuilder |
thenApply(Consumer<ELEMENT> builder)
Defines a configuration to be applied if condition is met without a possibility to define fallback.
|
protected abstract ELEMENT getElement()
protected EditorBuilder apply()
public EditorBuilder.Conditional then(Consumer<ELEMENT> builder)
EditorBuilder.Conditionalthen in interface EditorBuilder.Conditional<ELEMENT>builder - builder to configureEditorBuilder.Conditional.thenApply(Consumer)public EditorBuilder thenApply(Consumer<ELEMENT> builder)
EditorBuilder.ConditionalthenApply in interface EditorBuilder.Conditional<ELEMENT>builder - builder to configureEditorBuilder.Conditional.otherwiseApply(Consumer)public EditorBuilder otherwiseApply(Consumer<ELEMENT> builder)
EditorBuilder.ConditionalotherwiseApply in interface EditorBuilder.Conditional<ELEMENT>builder - builder to configureEditorBuilder.Conditional.thenApply(Consumer)Copyright © 2018. All rights reserved.