Package de.jplag.options
Class DefaultLanguageOption<T>
java.lang.Object
de.jplag.options.DefaultLanguageOption<T>
- Type Parameters:
T- The type of the option
- All Implemented Interfaces:
LanguageOption<T>
Default implementation for
LanguageOption-
Method Details
-
getType
- Specified by:
getTypein interfaceLanguageOption<T>- Returns:
- The type instance for the option.
-
getName
- Specified by:
getNamein interfaceLanguageOption<T>- Returns:
- The name of the option.
-
getValue
- Specified by:
getValuein interfaceLanguageOption<T>- Returns:
- The value of the option.
-
getDescription
- Specified by:
getDescriptionin interfaceLanguageOption<T>- Returns:
- The description of the option.
-
setValue
Description copied from interface:LanguageOptionUpdates the options value.- Specified by:
setValuein interfaceLanguageOption<T>- Parameters:
value- The new value
-
hasValue
public boolean hasValue()- Specified by:
hasValuein interfaceLanguageOption<T>- Returns:
- True, if the option has a value right now. The actual value might still be null.
-