Constraint
, SelfDescribing
public class IsNothing extends java.lang.Object implements Constraint
Constructor | Description |
---|---|
IsNothing() |
|
IsNothing(java.lang.String description) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.StringBuffer |
describeTo(java.lang.StringBuffer buffer) |
Appends the description of this object to the buffer.
|
boolean |
eval(java.lang.Object o) |
Evaluates the constraint for argument o.
|
public static final IsNothing INSTANCE
public IsNothing()
public IsNothing(java.lang.String description)
public boolean eval(java.lang.Object o)
Constraint
eval
in interface Constraint
o
- the object against which the constraint is evaluated.true
if o meets the constraint,
false
if it does not.public java.lang.StringBuffer describeTo(java.lang.StringBuffer buffer)
SelfDescribing
describeTo
in interface SelfDescribing
buffer
- The buffer that the description is appended to.