public final class TomlFileLoader
extends Object
Toml file loader class.
-
Constructor Summary
Constructors
-
Method Summary
static Optional<com.electronwill.nightconfig.core.CommentedConfig>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TomlFileLoader
public TomlFileLoader()
-
Method Details
-
getConfig
@Nonnull
public static Optional<com.electronwill.nightconfig.core.CommentedConfig> getConfig(@Nonnull
String name,
boolean useDefault)
Gets file.
- Returns:
- Optional TOML commented config.