org.rrd4j.core.jrrd

## Class UnivalArray

- java.lang.Object
- - org.rrd4j.core.jrrd.UnivalArray

-     class UnivalArray
      extends Object

  This class is used to read a unival from a file unival is a rrdtool type, defined in rrd_format.h

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `UnivalArray(RRDFile file, int size)` Read an UnivalArray from a rrd native file at the current position

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `double` | `getDouble(Enum<?> e)` getDouble.
    `long` | `getLong(Enum<?> e)` getLong.

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

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

- - ### Constructor Detail

    - #### UnivalArray

          public UnivalArray(RRDFile file,
                             int size)

      Read an UnivalArray from a rrd native file at the current position
      Parameters:
        `file` - the RRdFile
        `size` - the numer of elements in the array

  - ### Method Detail

    - #### getDouble

          public double getDouble(Enum<?> e)

      getDouble.
      Parameters:
        `e` - a `Enum` object.
      Returns:
        a double.

    - #### getLong

          public long getLong(Enum<?> e)

      getLong.
      Parameters:
        `e` - a `Enum` object.
      Returns:
        a long.