com.h3c.sdn.metric

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

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

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

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

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

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MeterMetricValue.Builder()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `MeterMetricValue` | `build()`
    `T` | `expectedFieldCount(long value)` Sets the expected field count.
    `T` | `rate(double value)` Sets the rate.

    - ### 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

    - #### MeterMetricValue.Builder

          public MeterMetricValue.Builder()

  - ### Method Detail

    - #### expectedFieldCount

          public T expectedFieldCount(long value)

      Sets the expected field count.
      Parameters:
        `value` - the expected field count value
      Returns:
        this instance

    - #### rate

          public T rate(double value)

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

    - #### build

          public MeterMetricValue build()

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

Copyright © 2014. All Rights Reserved.