org.incava.jagol

Class FloatOption

public class FloatOption extends NonBooleanOption

Represents an option that is an float.
Constructor Summary
FloatOption(String longName, String description)
FloatOption(String longName, String description, Float value)
Method Summary
protected StringgetType()
FloatgetValue()
Returns the value.
voidsetValue(Float value)
Sets the value.
voidsetValue(String value)
Sets the value from the string, for a float type.
StringtoString()

Constructor Detail

FloatOption

public FloatOption(String longName, String description)

FloatOption

public FloatOption(String longName, String description, Float value)

Method Detail

getType

protected String getType()

getValue

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

setValue

public void setValue(Float value)
Sets the value.

setValue

public void setValue(String value)
Sets the value from the string, for a float type.

toString

public String toString()