private static class DynamicTablesHelper.CacheKey.IndexKey
extends java.lang.Object
P2JIndex, for purposes of
producing hash codes suitable for using instances of the enclosing class as hash map
keys. This class provides stricter implementations of hashCode and
equals than those provided by P2JIndex itself.| Modifier and Type | Field and Description |
|---|---|
private P2JIndex |
index
The wrapped instance of an index definition
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Overrides the default implementation to provide an implementation consistent with
hashCode(). |
int |
hashCode()
Use the content of the wrapped index definition to produce a hash code.
|
java.lang.String |
toString()
To string method returning the string value of this objects P2JIndex field.
|
private final P2JIndex index
IndexKey(P2JIndex index)
index - Index definition to be wrapped.public int hashCode()
P2JIndex.hashCode(), because the latter implementation of this
method is special-purpose, taking only the names of index components into account and
ignores other index metadata.hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
hashCode().equals in class java.lang.Objecttrue if this object is equivalent with o, else false.public java.lang.String toString()
toString in class java.lang.Object