public class EqNum extends ComparisonExpression
ComparisonExpression that implements integer equality.
Both values are interpreted as integers. The compare(Value, Value)
method returns true if both values represent the same integer.
This is distinct from the byte-level Eq because byte
representations of two equal integers may differ, due to
Encodings and other factors such as
padding.
predicate, value| Constructor and Description |
|---|
EqNum(ValueExpression value,
ValueExpression predicate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compare(Value left,
Value right) |
equals, eval, hashCode, toStringpublic EqNum(ValueExpression value, ValueExpression predicate)
public boolean compare(Value left, Value right)
compare in class ComparisonExpressionCopyright © 2017. All rights reserved.