public final class ConvertedFormat<C extends Config,F extends ConfigFormat<C>> extends java.lang.Object implements ConfigFormat<C>
| Constructor and Description |
|---|
ConvertedFormat(F initialFormat,
java.util.function.Predicate<java.lang.Class<?>> supportPredicate) |
| Modifier and Type | Method and Description |
|---|---|
C |
createConcurrentConfig()
Creates a config of this format.
|
C |
createConfig() |
C |
createConfig(java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> mapCreator)
Creates a config that uses the given map supplier for all its levels (top
level and subconfigs).
|
ConfigParser<C> |
createParser() |
ConfigWriter |
createWriter() |
boolean |
supportsComments()
Checks if this format supports CommentedConfigs.
|
boolean |
supportsType(java.lang.Class<?> type)
Checks if this format supports the given type of value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitEmptyFile, initEmptyFile, initEmptyFile, isInMemorypublic ConvertedFormat(F initialFormat, java.util.function.Predicate<java.lang.Class<?>> supportPredicate)
public ConfigWriter createWriter()
createWriter in interface ConfigFormat<C extends Config>public ConfigParser<C> createParser()
createParser in interface ConfigFormat<C extends Config>public C createConfig()
createConfig in interface ConfigFormat<C extends Config>public C createConcurrentConfig()
ConfigFormatcreateConcurrentConfig in interface ConfigFormat<C extends Config>public C createConfig(java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> mapCreator)
ConfigFormatcreateConfig in interface ConfigFormat<C extends Config>mapCreator - the map supplier for the configpublic boolean supportsComments()
ConfigFormatsupportsComments in interface ConfigFormat<C extends Config>true iff this format supports CommentedConfigspublic boolean supportsType(java.lang.Class<?> type)
ConfigFormatsupportsType in interface ConfigFormat<C extends Config>type - the type to check, may be null in which case this method checks if the format
supports null valuestrue iff this format supports the given type