|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.modeshape.graph.query.model.Or
@Immutable public class Or
A constraint that evaluates to true when either of the other constraints evaluates to true.
Constructor Summary | |
---|---|
Or(Constraint left,
Constraint right)
Create a constraint that evaluates to true if either of the two supplied constraints evaluates to true. |
Method Summary | |
---|---|
void |
accept(Visitor visitor)
Accept the supplied visitor, which should call back to the visitor to complete the double-dispatch operation. |
boolean |
equals(Object obj)
|
int |
hashCode()
|
Constraint |
left()
Get the left-hand constraint. |
Constraint |
right()
Get the right-hand constraint. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Or(Constraint left, Constraint right)
left
- the left constraintright
- the right constraint
IllegalArgumentException
- if the left or right constraints are nullMethod Detail |
---|
public Constraint left()
public Constraint right()
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public void accept(Visitor visitor)
accept
in interface Visitable
visitor
- the visitor; never nullVisitable.accept(org.modeshape.graph.query.model.Visitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |