private static class Expression.CacheKey
extends java.lang.Object
CompiledExpression
instances. When performing a lookup in the cache, the following
expression attributes are considered:
runtime flags
set for the
expression.
Modifier and Type | Field and Description |
---|---|
private int |
flags
Runtime flags set for expression
|
private java.lang.String |
infix
Expression text in infix notation
|
Constructor and Description |
---|
CacheKey(Expression expr)
Convenience constructor which instantiates a new key and sets the
internal key state, based upon the expression state.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Implementation of
equals which considers all relevant
state variables in this object. |
int |
hashCode()
Generates a hash code which considers the internal state of this
key and which is consistent with the implementation of
equals(java.lang.Object) . |
private final java.lang.String infix
private final int flags
CacheKey(Expression expr)
expr
- Expression object on which the cache key state is based.public int hashCode()
equals(java.lang.Object)
.hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
which considers all relevant
state variables in this object.equals
in class java.lang.Object
o
- Another CacheKey
instance to compare against
this one.true
if this object is equivalent to
o
else false
.