Class EnumSetting<X extends Enum<X>>
java.lang.Object
gg.xp.xivsupport.persistence.settings.ObservableSetting
gg.xp.xivsupport.persistence.settings.EnumSetting<X>
- All Implemented Interfaces:
ObservableMutable<X>
,ObservableValue<X>
,Resettable
public class EnumSetting<X extends Enum<X>>
extends ObservableSetting
implements ObservableMutable<X>, Resettable
-
Constructor Summary
ConstructorDescriptionEnumSetting
(PersistenceProvider persistence, String settingKey, Class<X> enumCls, X dflt) -
Method Summary
Methods inherited from class gg.xp.xivsupport.persistence.settings.ObservableSetting
addAndRunListener, addListener, notifyListeners, removeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface gg.xp.xivsupport.persistence.settings.ObservableValue
addAndRunListener, addAndRunValueListener, addListener, addValueListener, removeListener
-
Constructor Details
-
EnumSetting
-
-
Method Details
-
get
- Specified by:
get
in interfaceObservableValue<X extends Enum<X>>
-
set
- Specified by:
set
in interfaceObservableMutable<X extends Enum<X>>
-
isSet
public boolean isSet()- Specified by:
isSet
in interfaceResettable
-
delete
public void delete()- Specified by:
delete
in interfaceResettable
-
getDefault
-
getEnumType
-