DoubleHolder.java :  » Development » ArgParser » argparser » Java Open Source

Java Open Source » Development » ArgParser 
ArgParser » argparser » DoubleHolder.java
package argparser;

/**
  * Wrapper class which ``holds'' a double value,
  * enabling methods to return double values through
  * arguments.
  */
public class DoubleHolder implements java.io.Serializable
{
  /**
   * Value of the double, set and examined
   * by the application as needed.
   */
  public double value;

  /**
   * Constructs a new <code>DoubleHolder</code> with an initial
   * value of 0.
   */
  public DoubleHolder ()
   { value = 0;
   }

  /**
   * Constructs a new <code>DoubleHolder</code> with a
   * specific initial value.
   *
   * @param d Initial double value.
   */
  public DoubleHolder (double d)
   { value = d;
   }
}

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.