Package com.codahale.metrics.riemann
Class ValueFilter.Builder
java.lang.Object
com.codahale.metrics.riemann.ValueFilter.Builder
- Enclosing class:
- ValueFilter
Builder for ValueFilter instances
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a ValueFilter using this Builder instancewithLower(double lower) withLowerExclusive(double lower) withUpper(double upper) withUpperExclusive(double upper)
-
Constructor Details
-
Builder
Create a new builder for ValueFilters bound to the given state- Parameters:
state- state bound to values in the interval
-
-
Method Details
-
withLower
- Parameters:
lower- inclusive lower bound for the interval- Returns:
- Builder instance with lower set inclusively (i.e. lower bound is included in the interval)
-
withUpper
- Parameters:
upper- inclusive upper bound for the interval- Returns:
- Builder instance with upper set inclusively (i.e. upper bound is included in the interval)
-
withLowerExclusive
- Parameters:
lower- exclusive lower bound for the interval- Returns:
- Builder instance with lower set exclusively (i.e. lower bound is not included in the interval)
-
withUpperExclusive
- Parameters:
upper- exclusive upper bound for the interval- Returns:
- Builder instance with upper set exclusively (i.e. upper bound is not included in the interval)
-
build
Build a ValueFilter using this Builder instance- Returns:
- ValueFilter with properties determined by those of this Builder
-