Class Cfg.List
java.lang.Object
io.github.ttno1.configvalidation.Cfg.List
- Enclosing class:
Cfg
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigList
<Boolean, Boolean, List<Boolean>> Creates a ConfigList for a list of boolean values with no filters (the filters always pass).static <W,
X> ConfigList <Boolean, X, W> ofBoolean
(ConfigFilter<List<X>, W> filter, ConfigFilter<Boolean, X> elementFilter) Creates a ConfigList for a list of boolean values with the specified filter and element filter.static ConfigList
<Byte, Byte, List<Byte>> ofByte()
Creates a ConfigList for a list of byte values with no filters (the filters always pass).static <W,
X> ConfigList <Byte, X, W> ofByte
(ConfigFilter<List<X>, W> filter, ConfigFilter<Byte, X> elementFilter) Creates a ConfigList for a list of byte values with the specified filter and element filter.static ConfigList
<ConfigWrapper, ConfigWrapper, List<ConfigWrapper>> Creates a ConfigList for a list of config subsection values with no filters (the filters always pass).static <W,
X> ConfigList <ConfigWrapper, X, W> ofConfigSpec
(ConfigFilter<List<X>, W> filter, ConfigSpec<X> configSpec) Creates a ConfigList for a list of config subsection values with the specified filter and with the specified ConfigSpec that is validated against every element.static ConfigList
<Double, Double, List<Double>> ofDouble()
Creates a ConfigList for a list of double values with no filters (the filters always pass).static <W,
X> ConfigList <Double, X, W> ofDouble
(ConfigFilter<List<X>, W> filter, ConfigFilter<Double, X> elementFilter) Creates a ConfigList for a list of double values with the specified filter and element filter.static ConfigList
<Float, Float, List<Float>> ofFloat()
Creates a ConfigList for a list of float values with no filters (the filters always pass).static <W,
X> ConfigList <Float, X, W> ofFloat
(ConfigFilter<List<X>, W> filter, ConfigFilter<Float, X> elementFilter) Creates a ConfigList for a list of float values with the specified filter and element filter.static ConfigList
<Integer, Integer, List<Integer>> Creates a ConfigList for a list of integer values with no filters (the filters always pass).static <W,
X> ConfigList <Integer, X, W> ofInteger
(ConfigFilter<List<X>, W> filter, ConfigFilter<Integer, X> elementFilter) Creates a ConfigList for a list of integer values with the specified filter and element filter.ofList()
Creates a ConfigList for a list of list values with no filters (the filters always pass).static <W,
X> ConfigList <List<Object>, W, X> ofList
(ConfigFilter<List<W>, X> filter, ConfigFilter<List<Object>, W> elementFilter) Creates a ConfigList for a list of list values with the specified filter and element filter.static ConfigList
<Long, Long, List<Long>> ofLong()
Creates a ConfigList for a list of long values with no filters (the filters always pass).static <W,
X> ConfigList <Long, X, W> ofLong
(ConfigFilter<List<X>, W> filter, ConfigFilter<Long, X> elementFilter) Creates a ConfigList for a list of long values with the specified filter and element filter.static ConfigList
<Short, Short, List<Short>> ofShort()
Creates a ConfigList for a list of short values with no filters (the filters always pass).static <W,
X> ConfigList <Short, X, W> ofShort
(ConfigFilter<List<X>, W> filter, ConfigFilter<Short, X> elementFilter) Creates a ConfigList for a list of short values with the specified filter and element filter.static ConfigList
<String, String, List<String>> ofString()
Creates a ConfigList for a list of string values with no filters (the filters always pass).static <W,
X> ConfigList <String, X, W> ofString
(ConfigFilter<List<X>, W> filter, ConfigFilter<String, X> elementFilter) Creates a ConfigList for a list of string values with the specified filter and element filter.
-
Method Details
-
ofBoolean
public static <W,X> ConfigList<Boolean,X, ofBooleanW> (ConfigFilter<List<X>, W> filter, ConfigFilter<Boolean, X> elementFilter) Creates a ConfigList for a list of boolean values with the specified filter and element filter.- Type Parameters:
W
- the filter output typeX
- the element filter output type- Parameters:
filter
- the filter that applies to the list after the element filter has been applied to each elementelementFilter
- the filter that is separately applied to each element- Returns:
- a ConfigList of boolean values with the specified filters
-
ofByte
public static <W,X> ConfigList<Byte,X, ofByteW> (ConfigFilter<List<X>, W> filter, ConfigFilter<Byte, X> elementFilter) Creates a ConfigList for a list of byte values with the specified filter and element filter.- Type Parameters:
W
- the filter output typeX
- the element filter output type- Parameters:
filter
- the filter that applies to the list after the element filter has been applied to each elementelementFilter
- the filter that is separately applied to each element- Returns:
- a ConfigList of byte values with the specified filters
-
ofDouble
public static <W,X> ConfigList<Double,X, ofDoubleW> (ConfigFilter<List<X>, W> filter, ConfigFilter<Double, X> elementFilter) Creates a ConfigList for a list of double values with the specified filter and element filter.- Type Parameters:
W
- the filter output typeX
- the element filter output type- Parameters:
filter
- the filter that applies to the list after the element filter has been applied to each elementelementFilter
- the filter that is separately applied to each element- Returns:
- a ConfigList of double values with the specified filters
-
ofFloat
public static <W,X> ConfigList<Float,X, ofFloatW> (ConfigFilter<List<X>, W> filter, ConfigFilter<Float, X> elementFilter) Creates a ConfigList for a list of float values with the specified filter and element filter.- Type Parameters:
W
- the filter output typeX
- the element filter output type- Parameters:
filter
- the filter that applies to the list after the element filter has been applied to each elementelementFilter
- the filter that is separately applied to each element- Returns:
- a ConfigList of float values with the specified filters
-
ofInteger
public static <W,X> ConfigList<Integer,X, ofIntegerW> (ConfigFilter<List<X>, W> filter, ConfigFilter<Integer, X> elementFilter) Creates a ConfigList for a list of integer values with the specified filter and element filter.- Type Parameters:
W
- the filter output typeX
- the element filter output type- Parameters:
filter
- the filter that applies to the list after the element filter has been applied to each elementelementFilter
- the filter that is separately applied to each element- Returns:
- a ConfigList of integer values with the specified filters
-
ofList
public static <W,X> ConfigList<List<Object>, W, X> ofList(ConfigFilter<List<W>, X> filter, ConfigFilter<List<Object>, W> elementFilter) Creates a ConfigList for a list of list values with the specified filter and element filter.- Type Parameters:
W
- the filter output typeX
- the element filter output type- Parameters:
filter
- the filter that applies to the list after the element filter has been applied to each elementelementFilter
- the filter that is separately applied to each element- Returns:
- a ConfigList of list values with the specified filters
-
ofLong
public static <W,X> ConfigList<Long,X, ofLongW> (ConfigFilter<List<X>, W> filter, ConfigFilter<Long, X> elementFilter) Creates a ConfigList for a list of long values with the specified filter and element filter.- Type Parameters:
W
- the filter output typeX
- the element filter output type- Parameters:
filter
- the filter that applies to the list after the element filter has been applied to each elementelementFilter
- the filter that is separately applied to each element- Returns:
- a ConfigList of long values with the specified filters
-
ofConfigSpec
public static <W,X> ConfigList<ConfigWrapper, X, W> ofConfigSpec(ConfigFilter<List<X>, W> filter, ConfigSpec<X> configSpec) Creates a ConfigList for a list of config subsection values with the specified filter and with the specified ConfigSpec that is validated against every element.- Type Parameters:
W
- the filter output typeX
- the ConfigSpec filter output type- Parameters:
filter
- the filter that applies to the list after the ConfigSpec has been applied to each elementconfigSpec
- the ConfigSpec that is applied to each element- Returns:
- a ConfigList of ConfigWrapper values with the specified filters
-
ofShort
public static <W,X> ConfigList<Short,X, ofShortW> (ConfigFilter<List<X>, W> filter, ConfigFilter<Short, X> elementFilter) Creates a ConfigList for a list of short values with the specified filter and element filter.- Type Parameters:
W
- the filter output typeX
- the element filter output type- Parameters:
filter
- the filter that applies to the list after the element filter has been applied to each elementelementFilter
- the filter that is separately applied to each element- Returns:
- a ConfigList of short values with the specified filters
-
ofString
public static <W,X> ConfigList<String,X, ofStringW> (ConfigFilter<List<X>, W> filter, ConfigFilter<String, X> elementFilter) Creates a ConfigList for a list of string values with the specified filter and element filter.- Type Parameters:
W
- the filter output typeX
- the element filter output type- Parameters:
filter
- the filter that applies to the list after the element filter has been applied to each elementelementFilter
- the filter that is separately applied to each element- Returns:
- a ConfigList of string values with the specified filters
-
ofBoolean
Creates a ConfigList for a list of boolean values with no filters (the filters always pass).- Returns:
- a ConfigList of boolean values
-
ofByte
Creates a ConfigList for a list of byte values with no filters (the filters always pass).- Returns:
- a ConfigList of byte values
-
ofDouble
Creates a ConfigList for a list of double values with no filters (the filters always pass).- Returns:
- a ConfigList of double values
-
ofFloat
Creates a ConfigList for a list of float values with no filters (the filters always pass).- Returns:
- a ConfigList of float values
-
ofInteger
Creates a ConfigList for a list of integer values with no filters (the filters always pass).- Returns:
- a ConfigList of integer values
-
ofList
-
ofLong
Creates a ConfigList for a list of long values with no filters (the filters always pass).- Returns:
- a ConfigList of long values
-
ofConfigSpec
Creates a ConfigList for a list of config subsection values with no filters (the filters always pass).- Returns:
- a ConfigList of ConfigWrapper values
-
ofShort
Creates a ConfigList for a list of short values with no filters (the filters always pass).- Returns:
- a ConfigList of short values
-
ofString
Creates a ConfigList for a list of string values with no filters (the filters always pass).- Returns:
- a ConfigList of string values
-