Class DoubleHolder


  • public final class DoubleHolder
    extends java.lang.Object
    A mutable holder class to represent an double value. DoubleHolder objects are useful as return parameters.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double value
      The double value held by this object.
    • Constructor Summary

      Constructors 
      Constructor Description
      DoubleHolder()
      Instantiates a DoubleHolder object with the initial value 0.0.
      DoubleHolder​(double value)
      Instantiates a DoubleHolder object with the initial value given.
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • value

        public double value
        The double value held by this object.
    • Constructor Detail

      • DoubleHolder

        public DoubleHolder()
        Instantiates a DoubleHolder object with the initial value 0.0.
      • DoubleHolder

        public DoubleHolder​(double value)
        Instantiates a DoubleHolder object with the initial value given.
        Parameters:
        value - the initial value.