Class ConfigDef.LambdaValidator

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void ensureValid​(java.lang.String name, java.lang.Object value)
      Perform single configuration validation.
      java.lang.String toString()  
      static ConfigDef.LambdaValidator with​(java.util.function.BiConsumer<java.lang.String,​java.lang.Object> ensureValid, java.util.function.Supplier<java.lang.String> toStringFunction)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • with

        public static ConfigDef.LambdaValidator with​(java.util.function.BiConsumer<java.lang.String,​java.lang.Object> ensureValid,
                                                     java.util.function.Supplier<java.lang.String> toStringFunction)
      • ensureValid

        public void ensureValid​(java.lang.String name,
                                java.lang.Object value)
        Description copied from interface: ConfigDef.Validator
        Perform single configuration validation.
        Specified by:
        ensureValid in interface ConfigDef.Validator
        Parameters:
        name - The name of the configuration
        value - The value of the configuration
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object