Package | Description |
---|---|
com.codelanx.codelanxlib.config | |
com.codelanx.codelanxlib.data | |
com.codelanx.codelanxlib.data.types |
Modifier and Type | Class and Description |
---|---|
class |
DataHolder<D extends FileDataType>
Holds a reference to a
FileDataType and initializes it upon the first
calling. |
Modifier and Type | Method and Description |
---|---|
default <T extends FileDataType> |
PluginFile.init(Class<T> clazz)
Loads the
PluginFile values from the configuration file. |
static <T extends FileDataType> |
Config.retrieve(T file,
Config config)
Retrieves an anonymous value which can utilize a
Config parameter to retrieve data from any source |
Modifier and Type | Method and Description |
---|---|
default FileDataType |
PluginFile.getConfig()
Returns the relevant
FileDataType for this file. |
Modifier and Type | Method and Description |
---|---|
DataHolder<? extends FileDataType> |
PluginFile.getData()
Returns the relevant
DataHolder for this file, which provides
thread-safety for the FileDataType object initialization |
Modifier and Type | Method and Description |
---|---|
default Config |
Config.retrieve(FileDataType t)
Facade method for
Config.retrieve(FileDataType, Config) |
Modifier and Type | Method and Description |
---|---|
static <T extends FileDataType> |
FileDataType.newInstance(Class<T> clazz,
File location)
Returns a new instance of a
FileDataType based on the passed
class instance. |
Modifier and Type | Method and Description |
---|---|
static Class<? extends FileDataType> |
FileDataType.fromString(String in)
|
Modifier and Type | Class and Description |
---|---|
class |
Json
Represents a JSON file that has been parsed and loaded into memory.
|
class |
Yaml
Represents a YAML file that is parsed and loaded into memory.
|
Copyright © 2015. All rights reserved.