bpiwowar.argparser.holders
Class IntHolder

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

public class IntHolder
extends Holder<Integer>
implements Serializable

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

See Also:
Serialized Form

Constructor Summary
IntHolder()
          Constructs a new IntHolder with an initial value of 0.
IntHolder(int i)
          Constructs a new IntHolder with a specific initial value.
 
Method Summary
 Integer getValue()
           
 void setValue(int value)
           
 void setValue(String value)
           
 
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

IntHolder

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


IntHolder

public IntHolder(int i)
Constructs a new IntHolder with a specific initial value.

Parameters:
i - Initial integer value.
Method Detail

setValue

public void setValue(String value)
Specified by:
setValue in class Holder<Integer>

setValue

public void setValue(int value)

getValue

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


Copyright © 2013. All Rights Reserved.