Class Cfg.Node
java.lang.Object
io.github.ttno1.configvalidation.Cfg.Node
- Enclosing class:
Cfg
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigNode<Boolean, Boolean> Creates a ConfigNode for a boolean value with no filter (the filter always passes).static <W> ConfigNode<Boolean, W> ofBoolean(ConfigFilter<Boolean, W> filter) Creates a ConfigNode for a boolean value with the specified filter.static ConfigNode<Byte, Byte> ofByte()Creates a ConfigNode for a byte value with no filter (the filter always passes).static <W> ConfigNode<Byte, W> ofByte(ConfigFilter<Byte, W> filter) Creates a ConfigNode for a byte value with the specified filter.static ConfigNode<Double, Double> ofDouble()Creates a ConfigNode for a double value with no filter (the filter always passes).static <W> ConfigNode<Double, W> ofDouble(ConfigFilter<Double, W> filter) Creates a ConfigNode for a double value with the specified filter.static ConfigNode<Float, Float> ofFloat()Creates a ConfigNode for a float value with no filter (the filter always passes).static <W> ConfigNode<Float, W> ofFloat(ConfigFilter<Float, W> filter) Creates a ConfigNode for a float value with the specified filter.static ConfigNode<Integer, Integer> Creates a ConfigNode for a integer value with no filter (the filter always passes).static <W> ConfigNode<Integer, W> ofInteger(ConfigFilter<Integer, W> filter) Creates a ConfigNode for a integer value with the specified filter.static ConfigNode<Long, Long> ofLong()Creates a ConfigNode for a long value with no filter (the filter always passes).static <W> ConfigNode<Long, W> ofLong(ConfigFilter<Long, W> filter) Creates a ConfigNode for a long value with the specified filter.static ConfigNode<Short, Short> ofShort()Creates a ConfigNode for a short value with no filter (the filter always passes).static <W> ConfigNode<Short, W> ofShort(ConfigFilter<Short, W> filter) Creates a ConfigNode for a short value with the specified filter.static ConfigNode<String, String> ofString()Creates a ConfigNode for a string value with no filter (the filter always passes).static <W> ConfigNode<String, W> ofString(ConfigFilter<String, W> filter) Creates a ConfigNode for a string value with the specified filter.
-
Method Details
-
ofBoolean
Creates a ConfigNode for a boolean value with the specified filter.- Type Parameters:
W- the filter output type- Parameters:
filter- the filter of this node- Returns:
- a ConfigNode for a boolean config option with the provided filter
-
ofByte
Creates a ConfigNode for a byte value with the specified filter.- Type Parameters:
W- the filter output type- Parameters:
filter- the filter of this node- Returns:
- a ConfigNode for a byte config option with the provided filter
-
ofDouble
Creates a ConfigNode for a double value with the specified filter.- Type Parameters:
W- the filter output type- Parameters:
filter- the filter of this node- Returns:
- a ConfigNode for a double config option with the provided filter
-
ofFloat
Creates a ConfigNode for a float value with the specified filter.- Type Parameters:
W- the filter output type- Parameters:
filter- the filter of this node- Returns:
- a ConfigNode for a float config option with the provided filter
-
ofInteger
Creates a ConfigNode for a integer value with the specified filter.- Type Parameters:
W- the filter output type- Parameters:
filter- the filter of this node- Returns:
- a ConfigNode for a integer config option with the provided filter
-
ofLong
Creates a ConfigNode for a long value with the specified filter.- Type Parameters:
W- the filter output type- Parameters:
filter- the filter of this node- Returns:
- a ConfigNode for a long config option with the provided filter
-
ofShort
Creates a ConfigNode for a short value with the specified filter.- Type Parameters:
W- the filter output type- Parameters:
filter- the filter of this node- Returns:
- a ConfigNode for a short config option with the provided filter
-
ofString
Creates a ConfigNode for a string value with the specified filter.- Type Parameters:
W- the filter output type- Parameters:
filter- the filter of this node- Returns:
- a ConfigNode for a string config option with the provided filter
-
ofBoolean
Creates a ConfigNode for a boolean value with no filter (the filter always passes).- Returns:
- a ConfigNode for a boolean config option
-
ofByte
Creates a ConfigNode for a byte value with no filter (the filter always passes).- Returns:
- a ConfigNode for a byte config option
-
ofDouble
Creates a ConfigNode for a double value with no filter (the filter always passes).- Returns:
- a ConfigNode for a double config option
-
ofFloat
Creates a ConfigNode for a float value with no filter (the filter always passes).- Returns:
- a ConfigNode for a float config option
-
ofInteger
Creates a ConfigNode for a integer value with no filter (the filter always passes).- Returns:
- a ConfigNode for a integer config option
-
ofLong
Creates a ConfigNode for a long value with no filter (the filter always passes).- Returns:
- a ConfigNode for a long config option
-
ofShort
Creates a ConfigNode for a short value with no filter (the filter always passes).- Returns:
- a ConfigNode for a short config option
-
ofString
Creates a ConfigNode for a string value with no filter (the filter always passes).- Returns:
- a ConfigNode for a string config option
-