Class Cfg.List

java.lang.Object
io.github.ttno1.configvalidation.Cfg.List
Enclosing class:
Cfg

public static final class Cfg.List extends Object
  • Method Details

    • ofBoolean

      public 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.
      Type Parameters:
      W - the filter output type
      X - the element filter output type
      Parameters:
      filter - the filter that applies to the list after the element filter has been applied to each element
      elementFilter - 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,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.
      Type Parameters:
      W - the filter output type
      X - the element filter output type
      Parameters:
      filter - the filter that applies to the list after the element filter has been applied to each element
      elementFilter - 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,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.
      Type Parameters:
      W - the filter output type
      X - the element filter output type
      Parameters:
      filter - the filter that applies to the list after the element filter has been applied to each element
      elementFilter - 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,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.
      Type Parameters:
      W - the filter output type
      X - the element filter output type
      Parameters:
      filter - the filter that applies to the list after the element filter has been applied to each element
      elementFilter - 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,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.
      Type Parameters:
      W - the filter output type
      X - the element filter output type
      Parameters:
      filter - the filter that applies to the list after the element filter has been applied to each element
      elementFilter - 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 type
      X - the element filter output type
      Parameters:
      filter - the filter that applies to the list after the element filter has been applied to each element
      elementFilter - 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,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.
      Type Parameters:
      W - the filter output type
      X - the element filter output type
      Parameters:
      filter - the filter that applies to the list after the element filter has been applied to each element
      elementFilter - 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 type
      X - the ConfigSpec filter output type
      Parameters:
      filter - the filter that applies to the list after the ConfigSpec has been applied to each element
      configSpec - 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,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.
      Type Parameters:
      W - the filter output type
      X - the element filter output type
      Parameters:
      filter - the filter that applies to the list after the element filter has been applied to each element
      elementFilter - 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,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.
      Type Parameters:
      W - the filter output type
      X - the element filter output type
      Parameters:
      filter - the filter that applies to the list after the element filter has been applied to each element
      elementFilter - the filter that is separately applied to each element
      Returns:
      a ConfigList of string values with the specified filters
    • ofBoolean

      public static ConfigList<Boolean, Boolean, List<Boolean>> ofBoolean()
      Creates a ConfigList for a list of boolean values with no filters (the filters always pass).
      Returns:
      a ConfigList of boolean values
    • ofByte

      public static ConfigList<Byte, Byte, List<Byte>> ofByte()
      Creates a ConfigList for a list of byte values with no filters (the filters always pass).
      Returns:
      a ConfigList of byte values
    • ofDouble

      public static ConfigList<Double, Double, List<Double>> ofDouble()
      Creates a ConfigList for a list of double values with no filters (the filters always pass).
      Returns:
      a ConfigList of double values
    • ofFloat

      public static ConfigList<Float, Float, List<Float>> ofFloat()
      Creates a ConfigList for a list of float values with no filters (the filters always pass).
      Returns:
      a ConfigList of float values
    • ofInteger

      public static ConfigList<Integer, Integer, List<Integer>> ofInteger()
      Creates a ConfigList for a list of integer values with no filters (the filters always pass).
      Returns:
      a ConfigList of integer values
    • ofList

      public static ConfigList<List<Object>, List<Object>, List<List<Object>>> ofList()
      Creates a ConfigList for a list of list values with no filters (the filters always pass).
      Returns:
      a ConfigList of list values
    • ofLong

      public static ConfigList<Long, Long, List<Long>> ofLong()
      Creates a ConfigList for a list of long values with no filters (the filters always pass).
      Returns:
      a ConfigList of long values
    • ofConfigSpec

      public static ConfigList<ConfigWrapper, ConfigWrapper, List<ConfigWrapper>> 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

      public static ConfigList<Short, Short, List<Short>> ofShort()
      Creates a ConfigList for a list of short values with no filters (the filters always pass).
      Returns:
      a ConfigList of short values
    • ofString

      public static ConfigList<String, String, List<String>> ofString()
      Creates a ConfigList for a list of string values with no filters (the filters always pass).
      Returns:
      a ConfigList of string values