bpiwowar.argparser.holders
Class IntHolder
java.lang.Object
bpiwowar.argparser.handlers.Handler
bpiwowar.argparser.holders.Holder<Integer>
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. |
Methods inherited from class bpiwowar.argparser.holders.Holder |
parse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.