to Condition
Convert this field to a ValidatedCondition. The provided condition (and any others you append) must pass for the stored value to be provided, otherwise the fallback will be supplied.
Return
this condition
Author
fzzyhmstrs
Since
0.5.4
Parameters
Condition a condition to check before passing the stored value
Throws
if the fallback is this
Convert this field to a ValidatedCondition. The provided condition (and any others you append) must pass for the stored value to be provided, otherwise the fallback will be supplied.
Note: a ValidatedField is a supplier. If you want a custom failMessage, this is a valid overload of withCondition(ValidatedField<Boolean>)
Return
this condition
Author
fzzyhmstrs
Since
0.5.4
Parameters
Supplier
Text a message to provide to a tooltip if a condition isn't met
Throws
if the fallback is this
Convert this field to a ValidatedCondition using the provided validation as a supplier. The provided condition (and any others you append) must pass for the stored value to be provided, otherwise the fallback will be supplied.
Return
this condition
Author
fzzyhmstrs
Since
0.5.4
Parameters
ValidatedField
Throws
if this field is passed into itself
Convert this field to a ValidatedCondition using the provided scope with a default boolean provider. The provided condition (and any others you append) must pass for the stored value to be provided, otherwise the fallback will be supplied. The provided scope must point to a valid boolean config scope otherwise the initial condition will never pass.
Return
this condition
Author
fzzyhmstrs
Since
0.5.4
Parameters
String - a config scope
pointing to a boolean or validated boolean.
Text a message to provide to a tooltip if a condition isn't met
Throws
if the fallback is this