@Immutable public class Or extends Object implements Constraint, Or
Constructor and Description |
---|
Or(Constraint left,
Constraint right)
Create a constraint that evaluates to true if either of the two supplied constraints evaluates to true.
|
Modifier and Type | Method and Description |
---|---|
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) |
Constraint |
getConstraint1() |
Constraint |
getConstraint2() |
int |
hashCode() |
Constraint |
left()
Get the left-hand constraint.
|
Constraint |
right()
Get the right-hand constraint.
|
String |
toString() |
public Or(Constraint left, Constraint right)
left
- the left constraintright
- the right constraintIllegalArgumentException
- if the left or right constraints are nullpublic Constraint left()
public Constraint right()
public Constraint getConstraint1()
getConstraint1
in interface Or
public Constraint getConstraint2()
getConstraint2
in interface Or
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.