Class LoadSetting<T>
java.lang.Object
com.mrivanplays.annotationconfig.core.resolver.settings.LoadSetting<T>
- Type Parameters:
T
- load setting type
- Since:
- 2.0.0
- Author:
- MrIvanPlays
-
Field Summary
Modifier and TypeFieldDescriptionstatic final LoadSetting<Boolean>
ABoolean
type load setting, representing whether to generate new/non-existing options in a file.static final LoadSetting<NullReadHandleOption>
A load setting, value of which tells AnnotationConfig how to handle null read values. -
Method Summary
-
Field Details
-
GENERATE_NEW_OPTIONS
ABoolean
type load setting, representing whether to generate new/non-existing options in a file. -
NULL_READ_HANDLER
A load setting, value of which tells AnnotationConfig how to handle null read values.Null read values are values of
Fields
, which upon deserialization returnnull
.
-
-
Method Details
-
of
Creates a new load setting.- Type Parameters:
T
- value type- Parameters:
key
- the key of the load settingtype
- the type of data this load setting handles- Returns:
- load setting instance
-
getKey
Returns the key of this load setting.- Returns:
- the key
-
getType
Returns the class type of this load setting.- Returns:
- the class type
-