com.h3c.sdn.metric

## Class RatioGaugeMetricValue.Builder<T extends RatioGaugeMetricValue.Builder<T>>

- java.lang.Object
- - com.h3c.sdn.metric.MetricValue.Builder<T>
  - - com.h3c.sdn.metric.RatioGaugeMetricValue.Builder<T>

- Type Parameters:
    `T` - specific metric value sub class
  Enclosing class:
    RatioGaugeMetricValue

      public abstract static class RatioGaugeMetricValue.Builder<T extends RatioGaugeMetricValue.Builder<T>>
      extends MetricValue.Builder<T>

  Builder (mutable) used to create a new value instances.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RatioGaugeMetricValue.Builder()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `RatioGaugeMetricValue` | `build()`
    `T` | `denominator(double value)` Sets the denominator.
    `T` | `numerator(double value)` Sets the numerator.

    - ### Methods inherited from class com.h3c.sdn.metric.MetricValue.Builder

      `count, millisecondsSpan, persistDate, self, type, uid, updateDate`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RatioGaugeMetricValue.Builder

          public RatioGaugeMetricValue.Builder()

  - ### Method Detail

    - #### denominator

          public T denominator(double value)

      Sets the denominator.
      Parameters:
        `value` - the denominator value
      Returns:
        this instance

    - #### numerator

          public T numerator(double value)

      Sets the numerator.
      Parameters:
        `value` - the numerator value
      Returns:
        this instance

    - #### build

          public RatioGaugeMetricValue build()

      Overrides:
        `build` in class `MetricValue.Builder<T extends RatioGaugeMetricValue.Builder<T>>`

Copyright © 2014. All Rights Reserved.