@Immutable public class Comparison extends Object implements Constraint, Comparison
Constructor and Description |
---|
Comparison(DynamicOperand operand1,
Operator operator,
StaticOperand operand2) |
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) |
DynamicOperand |
getOperand1() |
StaticOperand |
getOperand2() |
String |
getOperator() |
int |
hashCode() |
Operator |
operator()
Get the operator for this comparison
|
String |
toString() |
public Comparison(DynamicOperand operand1, Operator operator, StaticOperand operand2)
public DynamicOperand getOperand1()
getOperand1
in interface Comparison
public StaticOperand getOperand2()
getOperand2
in interface Comparison
public final Operator operator()
public String getOperator()
getOperator
in interface Comparison
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.