public class ValueFilter extends Object
applies(double) method. Ranges are intervals, with endpoint
inclusion configurable. The state property implicitly binds values in
the represented range to that state for reporting.
Instances are created using ValueFilter.Builder. Endpoints not
specified default to positive or negative infinity, respectively. For
example, new ValueFilter.Builder("critical").withLower(50).build())
creates a ValueFilter instance that binds "critical" to all values greater
than or equal to 50 and new ValueFilter.Builder("warn")
.withUpperExclusive(300)
.withLower(100).build()) creates an instance
binding "warn" to values greater than or equal to 100 and strictly less than
300.
| Modifier and Type | Class and Description |
|---|---|
static class |
ValueFilter.Builder
Builder for ValueFilter instances
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
applies(double value)
Determine whether or not the given value falls within the range
associated with this ValueFilter.
|
String |
getState() |
public boolean applies(double value)
value - value to testpublic String getState()
Copyright © 2019. All rights reserved.