T
- the type of the values to be tested against predicates.public class Predicates<T> extends Guardrail
A Predicates
guardrail defines (up to) 2 predicates, one at which a warning is issued, and another one
at which a failure is triggered. If failure is triggered, warning is skipped.
Modifier and Type | Class and Description |
---|---|
static interface |
Predicates.MessageProvider<T>
A function used to build the warning or error message of a triggered
Predicates guardrail. |
Modifier and Type | Method and Description |
---|---|
void |
guard(T value,
ClientState state)
Apply the guardrail to the provided value, triggering a warning or failure if appropriate.
|
public void guard(T value, @Nullable ClientState state)
value
- the value to check.Copyright © 2009-2022 The Apache Software Foundation