bpiwowar.argparser.holders
Class FloatHolder

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

public class FloatHolder
extends Holder<Float>
implements Serializable

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

See Also:
Serialized Form

Constructor Summary
FloatHolder()
          Constructs a new FloatHolder with an initial value of 0.
FloatHolder(float f)
          Constructs a new FloatHolder with a specific initial value.
 
Method Summary
 Float getValue()
           
protected  void setValue(String argument)
           
 
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, toString, wait, wait, wait
 

Constructor Detail

FloatHolder

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


FloatHolder

public FloatHolder(float f)
Constructs a new FloatHolder with a specific initial value.

Parameters:
f - Initial float value.
Method Detail

getValue

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

setValue

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


Copyright © 2013. All Rights Reserved.