Class ValueFilter.Builder

java.lang.Object
com.codahale.metrics.riemann.ValueFilter.Builder
Enclosing class:
ValueFilter

public static class ValueFilter.Builder extends Object
Builder for ValueFilter instances
  • Constructor Details

    • Builder

      public Builder(String state)
      Create a new builder for ValueFilters bound to the given state
      Parameters:
      state - state bound to values in the interval
  • Method Details

    • withLower

      public ValueFilter.Builder withLower(double lower)
      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

      public ValueFilter.Builder withUpper(double upper)
      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

      public ValueFilter.Builder withLowerExclusive(double lower)
      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

      public ValueFilter.Builder withUpperExclusive(double upper)
      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

      public ValueFilter build()
      Build a ValueFilter using this Builder instance
      Returns:
      ValueFilter with properties determined by those of this Builder