Package | Description |
---|---|
com.codelanx.commons.config | |
com.codelanx.commons.data | |
com.codelanx.commons.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 |
---|---|
static <T extends FileDataType> |
ConfigFile.anonMutator(String path,
Object def,
T file) |
default <T extends FileDataType> |
MemoryConfig.init(Class<T> clazz) |
default <T extends FileDataType> |
InfoFile.init(Class<T> clazz)
Loads the
InfoFile values from the configuration file. |
static <T extends FileDataType> |
ConfigFile.retrieve(T file,
ConfigFile config)
Retrieves an anonymous value which can utilize a
ConfigFile parameter to retrieve data from any source |
Modifier and Type | Method and Description |
---|---|
default FileDataType |
InfoFile.getConfig()
Returns the relevant
FileDataType for this file. |
Modifier and Type | Method and Description |
---|---|
default DataHolder<? extends FileDataType> |
MemoryConfig.getData() |
DataHolder<? extends FileDataType> |
InfoFile.getData()
Returns the relevant
DataHolder for this file, which provides
thread-safety for the FileDataType object initialization |
Modifier and Type | Method and Description |
---|---|
default ConfigFile |
ConfigFile.retrieve(FileDataType t)
Facade method for
ConfigFile.retrieve(FileDataType, ConfigFile) |
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 |
XML
Created by Rogue on 1/18/16.
|
class |
Yaml
Created by Rogue on 1/16/16.
|
Copyright © 2017. All rights reserved.