Class Cfg.Node

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

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

    • ofBoolean

      public static <W> ConfigNode<Boolean,W> ofBoolean(ConfigFilter<Boolean,W> filter)
      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

      public static <W> ConfigNode<Byte,W> ofByte(ConfigFilter<Byte,W> filter)
      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

      public static <W> ConfigNode<Double,W> ofDouble(ConfigFilter<Double,W> filter)
      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

      public static <W> ConfigNode<Float,W> ofFloat(ConfigFilter<Float,W> filter)
      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

      public static <W> ConfigNode<Integer,W> ofInteger(ConfigFilter<Integer,W> filter)
      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

      public static <W> ConfigNode<Long,W> ofLong(ConfigFilter<Long,W> filter)
      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

      public static <W> ConfigNode<Short,W> ofShort(ConfigFilter<Short,W> filter)
      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

      public static <W> ConfigNode<String,W> ofString(ConfigFilter<String,W> filter)
      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

      public static ConfigNode<Boolean,Boolean> ofBoolean()
      Creates a ConfigNode for a boolean value with no filter (the filter always passes).
      Returns:
      a ConfigNode for a boolean config option
    • ofByte

      public static ConfigNode<Byte,Byte> ofByte()
      Creates a ConfigNode for a byte value with no filter (the filter always passes).
      Returns:
      a ConfigNode for a byte config option
    • ofDouble

      public static ConfigNode<Double,Double> ofDouble()
      Creates a ConfigNode for a double value with no filter (the filter always passes).
      Returns:
      a ConfigNode for a double config option
    • ofFloat

      public static ConfigNode<Float,Float> ofFloat()
      Creates a ConfigNode for a float value with no filter (the filter always passes).
      Returns:
      a ConfigNode for a float config option
    • ofInteger

      public static ConfigNode<Integer,Integer> ofInteger()
      Creates a ConfigNode for a integer value with no filter (the filter always passes).
      Returns:
      a ConfigNode for a integer config option
    • ofLong

      public static ConfigNode<Long,Long> ofLong()
      Creates a ConfigNode for a long value with no filter (the filter always passes).
      Returns:
      a ConfigNode for a long config option
    • ofShort

      public static ConfigNode<Short,Short> ofShort()
      Creates a ConfigNode for a short value with no filter (the filter always passes).
      Returns:
      a ConfigNode for a short config option
    • ofString

      public static ConfigNode<String,String> ofString()
      Creates a ConfigNode for a string value with no filter (the filter always passes).
      Returns:
      a ConfigNode for a string config option