Class Configuration<T>
java.lang.Object
me.bristermitten.mittenlib.config.Configuration<T>
- Type Parameters:
T
- the type of the config
Represents a loadable configuration which will deserialize to an object of type
Configuration
-
Constructor Summary
ConstructorsConstructorDescriptionConfiguration
(String fileName, Class<T> type, @Nullable DeserializationFunction<T> deserializeFunction) Create a new Configuration -
Method Summary
-
Constructor Details
-
Configuration
public Configuration(String fileName, Class<T> type, @Nullable @Nullable DeserializationFunction<T> deserializeFunction) Create a new Configuration- Parameters:
fileName
- the name of the file to loadtype
- the type to deserialize todeserializeFunction
- the function to use to deserialize the data
-
-
Method Details
-
getFileName
- Returns:
- the name of the file to load
-
getType
- Returns:
- the type to deserialize to
-
getDeserializeFunction
- Returns:
- the function to use to deserialize the data
-