D - The type of the relevant FileDataTypepublic class DataHolder<D extends FileDataType> extends Object
FileDataType and initializes it upon the first
calling. This is meant for adding thread-safety to InfoFile calls
to InfoFile.getConfig() for the initialization of the underlying
FileDataType (thread-safe lazy initialization)| Constructor and Description |
|---|
DataHolder(Class<D> dataClass)
Initializes this holder
|
| Modifier and Type | Method and Description |
|---|---|
D |
get(InfoFile source)
Returns (and potentially initializes) the underlying
FileDataType |
public DataHolder(Class<D> dataClass)
dataClass - A class representing the FileDataType typepublic D get(InfoFile source)
FileDataTypesource - The InfoFile calling this methodFileDataTypeCopyright © 2017. All rights reserved.