Class IsNull

java.lang.Object
com.mockobjects.constraint.IsNull
All Implemented Interfaces:
Constraint

public class IsNull extends Object implements Constraint
Is the value null?
  • Constructor Details

    • IsNull

      public IsNull()
  • Method Details

    • eval

      public boolean eval(Object o)
      Description copied from interface: Constraint
      Evaluates the constraint for argument o.
      Specified by:
      eval in interface Constraint
      Returns:
      true if o meets the constraint, false if it does not.
    • toString

      public String toString()
      Overrides:
      toString in class Object