Top Description Fields Constructors Methods
com.headius.options

public Class EnumerationOption<T extends Enum<T>>

extends Option<T extends Enum<T>>
Class Inheritance

An Enum-based Option.

Field Summary

Inherited from com.headius.options.Option:
defvaltype

Constructor Summary

AccessConstructor and Description
public
EnumerationOption(String prefix, String shortName, Enum<E extends Enum<E>> category, Class<T> enumType, T defval, String description)

public
EnumerationOption(String longName, Enum<E extends Enum<E>> category, Class<T> enumType, T defval, String description)

Method Summary

Modifier and TypeMethod and Description
protected T
reloadValue()

Implements abstract com.headius.options.Option.reloadValue.

Perform the appropriate load and conversion for the option's property.
Inherited from com.headius.options.Option:
boolboolboolbooldefaultValuedescriptiondisplayNameenumerationenumerationenumerationenumerationforceformatOptionsformatOptionsformatValuesformatValuesintegerintegerintegerintegerintegerintegerintegerintegerisSpecifiedloadloadPropertyoptionsprefixpropertyNamereloadshortNamestringstringstringstringstringstringstringstringtoStringtypeunforce

Constructor Detail

EnumerationOptionback to summary
public EnumerationOption(String prefix, String shortName, Enum<E extends Enum<E>> category, Class<T> enumType, T defval, String description)
EnumerationOptionback to summary
public EnumerationOption(String longName, Enum<E extends Enum<E>> category, Class<T> enumType, T defval, String description)

Method Detail

reloadValueback to summary
protected T reloadValue()

Implements abstract com.headius.options.Option.reloadValue.

Doc from com.headius.options.Option.reloadValue.

Perform the appropriate load and conversion for the option's property.

Returns:T

the updated value after reload