Constraint
, SelfDescribing
public class IsAnything extends java.lang.Object implements Constraint
true
.Modifier and Type | Field | Description |
---|---|---|
static IsAnything |
INSTANCE |
Constructor | Description |
---|---|
IsAnything() |
|
IsAnything(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 IsAnything INSTANCE
public IsAnything()
public IsAnything(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.