Package org.core.config
Interface ConfigurationStream
- All Known Subinterfaces:
ConfigurationStream.ConfigurationFile
public interface ConfigurationStream
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionget(ConfigurationNode node)
getBoolean(ConfigurationNode node)
default boolean
getBoolean(ConfigurationNode node, boolean value)
default Set<ConfigurationNode>
getChildren(ConfigurationNode node)
getDouble(ConfigurationNode node)
default double
getDouble(ConfigurationNode node, double value)
getInteger(ConfigurationNode node)
default int
getInteger(ConfigurationNode node, int value)
getMap(ConfigurationNode node)
getString(ConfigurationNode node)
default String
getString(ConfigurationNode node, String value)
boolean
isList(ConfigurationNode node)
boolean
isMap(ConfigurationNode node)
default <T> Optional<T>
parse(ConfigurationNode.KnownParser<?,T> node)
default <T> T
parse(ConfigurationNode.KnownParser<?,T> node, T value)
default <T> Optional<T>
parse(ConfigurationNode node, Parser<? super String,T> parser)
default <T> Optional<T>
parse(ConfigurationNode node, StringMapParser<T> parser)
default <T> T
parse(ConfigurationNode node, StringMapParser<T> parser, T value)
default <T> T
parse(ConfigurationNode node, StringParser<T> parser, T value)
default <T, C extends Collection<T>>
CparseCollection(@NotNull ConfigurationNode node, @NotNull Parser<? super String,T> parser, C collection)
<T, C extends Collection<T>>
CparseCollection(@NotNull ConfigurationNode node, @NotNull Parser<? super String,T> parser, C collection, C defaultValue)
default <T, C extends Collection<T>>
CparseCollection(ConfigurationNode.GroupKnown<T> node, C collection)
default <T, C extends Collection<T>>
CparseCollection(ConfigurationNode.KnownParser<? super String,T> node, C collection)
default <T, C extends Collection<T>>
CparseCollection(ConfigurationNode.KnownParser<? super String,T> node, C collection, C defaultValue)
void
reload()
void
save()
default <T> void
set(ConfigurationNode.GroupKnown<T> node, Collection<? extends T> values)
default <T> void
set(ConfigurationNode.KnownParser.ChildKnown<T> node, T value)
default <T, C extends Collection<T>>
voidset(ConfigurationNode.KnownParser.CollectionKnown<T> node, C value)
default <T> void
set(ConfigurationNode.KnownParser.SingleKnown<T> node, T value)
void
set(ConfigurationNode node, boolean value)
void
set(ConfigurationNode node, double value)
void
set(ConfigurationNode node, int value)
void
set(ConfigurationNode node, String value)
void
set(ConfigurationNode node, Map<String,?> value)
<T> void
set(ConfigurationNode node, Parser<String,? super T> parser, Collection<T> collection)
default <T> void
set(ConfigurationNode node, StringMapParser<T> parser, T value)
default <T> void
set(ConfigurationNode node, StringParser<T> parser, T value)
-
Method Details
-
getFormat
ConfigurationFormat getFormat() -
getDouble
-
getInteger
-
getBoolean
-
getString
-
parseCollection
<T, C extends Collection<T>> C parseCollection(@NotNull @NotNull ConfigurationNode node, @NotNull @NotNull Parser<? super String,T> parser, @NotNull C collection, @Nullable C defaultValue) -
parseCollection
default <T, C extends Collection<T>> C parseCollection(@NotNull @NotNull ConfigurationNode node, @NotNull @NotNull Parser<? super String,T> parser, @NotNull C collection) -
set
-
set
-
set
-
set
-
set
-
getChildren
-
reload
void reload() -
save
void save() -
getChildren
-
get
-
isList
-
isMap
-
getMap
-
set
-
set
-
set
-
set
-
set
-
set
default <T, C extends Collection<T>> void set(ConfigurationNode.KnownParser.CollectionKnown<T> node, C value) -
set
-
parse
-
parse
-
parse
-
parse
-
parse
-
parse
-
parseCollection
default <T, C extends Collection<T>> C parseCollection(ConfigurationNode.GroupKnown<T> node, C collection) -
parseCollection
default <T, C extends Collection<T>> C parseCollection(ConfigurationNode.KnownParser<? super String,T> node, C collection) -
parseCollection
default <T, C extends Collection<T>> C parseCollection(ConfigurationNode.KnownParser<? super String,T> node, C collection, C defaultValue) -
getBoolean
-
getDouble
-
getInteger
-
getString
-