bpiwowar.argparser.holders
Class CharHolder
java.lang.Object
bpiwowar.argparser.handlers.Handler
bpiwowar.argparser.holders.Holder<Character>
bpiwowar.argparser.holders.CharHolder
- All Implemented Interfaces:
- Serializable
public class CharHolder
- extends Holder<Character>
- implements Serializable
Wrapper class which ``holds'' a character value, enabling methods to return
character values through arguments.
- See Also:
- Serialized Form
Field Summary |
char |
value
Value of the character, set and examined by the application as needed. |
Constructor Summary |
CharHolder()
Constructs a new CharHolder with an initial value of 0. |
CharHolder(char c)
Constructs a new CharHolder 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 |
value
public char value
- Value of the character, set and examined by the application as needed.
CharHolder
public CharHolder()
- Constructs a new
CharHolder
with an initial value of 0.
CharHolder
public CharHolder(char c)
- Constructs a new
CharHolder
with a specific initial value.
- Parameters:
c
- Initial character value.
getValue
public Character getValue()
- Specified by:
getValue
in class Holder<Character>
setValue
protected void setValue(String argument)
throws ArgParseException
- Specified by:
setValue
in class Holder<Character>
- Throws:
ArgParseException
Copyright © 2013. All Rights Reserved.