Package net.minheur.potoflux.settings
Class OptionalFeature
java.lang.Object
net.minheur.potoflux.settings.OptionalFeature
Container for a feature's value
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum to store the type of value -
Constructor Summary
ConstructorsConstructorDescriptionOptionalFeature(@NotNull Boolean boolValue) Creates a value of BooleanOptionalFeature(@NotNull Integer intValue) Creates a value of IntegerOptionalFeature(@NotNull String stringValue) Creates a value of String -
Method Summary
-
Constructor Details
-
Method Details
-
get
Gets the value as anObject- Returns:
- the value depending on the type
-
set
Modifies the value, from anObject- Parameters:
value- to set in the field corresponding to type- Throws:
ClassCastException- if the value given cannot be put into the right field
-
getType
Getter for the type- Returns:
type
-