Modifier and Type | Class and Description |
---|---|
static class |
Condition.Qualification |
Constructor and Description |
---|
Condition()
Constructs a new condition without any arguments
|
Condition(java.lang.Comparable left,
java.lang.Comparable right,
Condition.Qualification qualification)
Constructs a new condition with two Java
Comparable objects as arguments. |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate()
Implement the
Predicate interface by defining
the evaluate() method. |
protected java.lang.String |
symbolString()
Convert the qualification to a string.
|
java.lang.String |
toString()
Textual representation.
|
public Condition()
public Condition(java.lang.Comparable left, java.lang.Comparable right, Condition.Qualification qualification)
Comparable
objects as arguments.left
- the left-hand side Comparable
object.right
- the right-hand side Comparable
object.qualification
- the qualification between the two
Comparable
objects.public boolean evaluate()
Predicate
interface by defining
the evaluate() method.public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String symbolString()