Package net.minheur.potoflux.settings
Class SettingInfo<T>
java.lang.Object
net.minheur.potoflux.settings.SettingInfo<T>
- Type Parameters:
T- type of the setting. One ofPreferencesTypes.valueClass
Container with infos about a setting
-
Constructor Summary
ConstructorsConstructorDescriptionSettingInfo(PreferencesTypes type) Creates the info with only a type.
The value is set later viasetActualValue(Object) -
Method Summary
Modifier and TypeMethodDescriptionGetter for the actualValuegetType()Getter for thetypevoidsetActualValue(Object actualValue) Sets the value from an Object.
-
Constructor Details
-
SettingInfo
Creates the info with only a type.
The value is set later viasetActualValue(Object)- Parameters:
type- of the setting
-
-
Method Details
-
getType
Getter for thetype- Returns:
type
-
getActualValue
Getter for the actualValue- Returns:
actualValue
-
setActualValue
Sets the value from an Object. It needs to be the type of type- Parameters:
actualValue- to set inactualValue- Throws:
IllegalArgumentException- if the given Object isn't the type of type
-