ConditionScopes.ConditionScope


public class ConditionScopes.ConditionScope<T extends DynamicBuilders.DynamicType, RawT>


Condition scope to allow binding the true value in a onConditional expression. RawT is the native Java type that can be used when constructing a constant T (e.g. String for DynamicString).

Summary

Public methods

@NonNull ConditionScopes.IfTrueScope<T, RawT>
use(T valueWhenTrue)

Sets the value to use as the value when true in a conditional expression.

@NonNull ConditionScopes.IfTrueScope<T, RawT>
use(RawT valueWhenTrue)

Sets the value to use as the value when true in a conditional expression.

Public methods

use

Added in 1.0.0
public @NonNull ConditionScopes.IfTrueScope<T, RawT> use(T valueWhenTrue)

Sets the value to use as the value when true in a conditional expression.

use

Added in 1.0.0
public @NonNull ConditionScopes.IfTrueScope<T, RawT> use(RawT valueWhenTrue)

Sets the value to use as the value when true in a conditional expression.