Class NullValidator

java.lang.Object
org.apache.bookkeeper.common.conf.validators.NullValidator
All Implemented Interfaces:
Validator

public class NullValidator extends Object implements Validator
A validator that does nothing.
  • Method Details

    • of

      public static NullValidator of()
      Return the instance of NullValidator.
      Returns:
      the instance of NullValidator.
    • validate

      public boolean validate(String name, Object value)
      Description copied from interface: Validator
      Validates the configuration value.
      Specified by:
      validate in interface Validator
      Parameters:
      name - name of the configuration setting
      value - value of the configuration setting
      Returns:
      true if it is a valid value, otherwise false.