java.lang.Object
org.rrd4j.graph.ValueScaler.Scaled
Enclosing class:
ValueScaler

static class ValueScaler.Scaledextends Object
Represents a scaled value with its corresponding unit.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final String
    The unit
    (package private) final double
    The scaled value
  • Constructor Summary

    Constructors
    Constructor
    Description
    Scaled(double value, String unit)
    Stores an already-scaled value together with the unit it was scaled into.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    (package private) void
    Output internal state for debugging

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • value

      final double value
      The scaled value
    • unit

      final String unit
      The unit
  • Constructor Details

    • Scaled

      public Scaled(double value, String unit)
      Stores an already-scaled value together with the unit it was scaled into.
      Parameters:
      value - the value after division by the chosen scaling factor
      unit - resolved unit symbol, empty when a milli prefix was folded into the factor
  • Method Details

    • dump

      void dump()
      Output internal state for debugging