Methods Summary |
---|
public boolean | equals(java.lang.Object obj)Equality comparison.
if (!(obj instanceof IntegerComparisonTerm))
return false;
IntegerComparisonTerm ict = (IntegerComparisonTerm)obj;
return ict.number == this.number && super.equals(obj);
|
public int | getComparison()Return the type of comparison.
return comparison;
|
public int | getNumber()Return the number to compare with.
return number;
|
public int | hashCode()Compute a hashCode for this object.
return number + super.hashCode();
|
protected boolean | match(int i)
switch (comparison) {
case LE:
return i <= number;
case LT:
return i < number;
case EQ:
return i == number;
case NE:
return i != number;
case GT:
return i > number;
case GE:
return i >= number;
default:
return false;
}
|