bpiwowar.argparser.holders
Class DoubleHolder

java.lang.Object
  extended by bpiwowar.argparser.handlers.Handler
      extended by bpiwowar.argparser.holders.Holder<Double>
          extended by bpiwowar.argparser.holders.DoubleHolder
All Implemented Interfaces:
Serializable

public class DoubleHolder
extends Holder<Double>
implements Serializable

Wrapper class which ``holds'' a double value, enabling methods to return double values through arguments.

See Also:
Serialized Form

Constructor Summary
DoubleHolder()
          Constructs a new DoubleHolder with an initial value of 0.
DoubleHolder(double d)
          Constructs a new DoubleHolder with a specific initial value.
 
Method Summary
 Double getValue()
           
 void setValue(double value)
           
protected  void setValue(String argument)
           
 String toString()
           
 
Methods inherited from class bpiwowar.argparser.holders.Holder
parse
 
Methods inherited from class bpiwowar.argparser.handlers.Handler
add, getLimitChecker, getLimitChecker, getRangeChecker, isHelpOption, processAnnotations, setPrefix, updateRangeChecker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoubleHolder

public DoubleHolder()
Constructs a new DoubleHolder with an initial value of 0.


DoubleHolder

public DoubleHolder(double d)
Constructs a new DoubleHolder with a specific initial value.

Parameters:
d - Initial double value.
Method Detail

setValue

public void setValue(double value)

getValue

public Double getValue()
Specified by:
getValue in class Holder<Double>

toString

public String toString()
Overrides:
toString in class Object

setValue

protected void setValue(String argument)
Specified by:
setValue in class Holder<Double>


Copyright © 2013. All Rights Reserved.