org.incava.jagol

Class IntegerOption

public class IntegerOption extends NonBooleanOption

Represents an option that is an integer.
Constructor Summary
IntegerOption(String longName, String description)
IntegerOption(String longName, String description, Integer value)
Method Summary
protected StringgetType()
IntegergetValue()
Returns the value.
voidsetValue(Integer value)
Sets the value.
voidsetValue(String value)
Sets the value from the string, for an integer type.
StringtoString()

Constructor Detail

IntegerOption

public IntegerOption(String longName, String description)

IntegerOption

public IntegerOption(String longName, String description, Integer value)

Method Detail

getType

protected String getType()

getValue

public Integer getValue()
Returns the value. This is null if not set.

setValue

public void setValue(Integer value)
Sets the value.

setValue

public void setValue(String value)
Sets the value from the string, for an integer type.

toString

public String toString()