Class IsNull

java.lang.Object
cdc.validation.checkers.defaults.IsNull
All Implemented Interfaces:
Checker<Object>, Predicate<Object>

public final class IsNull extends Object implements Checker<Object>
  • Field Details

    • INSTANCE

      public static final IsNull INSTANCE
    • FACTORY

      public static final Factory<IsNull> FACTORY
  • Constructor Details

    • IsNull

      public IsNull()
  • Method Details

    • getValueClass

      public Class<Object> getValueClass()
      Specified by:
      getValueClass in interface Checker<Object>
      Returns:
      The class of tested values.
    • test

      public boolean test(Object value)
      Specified by:
      test in interface Checker<Object>
      Specified by:
      test in interface Predicate<Object>
    • explain

      public String explain(boolean result, String arg)
      Description copied from interface: Checker
      Explains the conditions at which a positive or negative result is obtained.
      Specified by:
      explain in interface Checker<Object>
      Parameters:
      result - The result to explain.
      arg - The argument name to use in explanations.
      Returns:
      A string explaining the conditions leading to result.