public abstract static class HashableState.CachedHashableState extends HashableState
HashableState
.
Once a hash code is computed, it is saved so that it does not need to be used again. Implementing
this class only requires implementing computeHashCode()
.HashableState.CachedHashableState
Modifier and Type | Field and Description |
---|---|
protected int |
hashCode |
protected boolean |
needToRecomputeHashCode |
s
Constructor and Description |
---|
HashableState.CachedHashableState(State s)
Initializes the StateHashTuple with the given
State object. |
Modifier and Type | Method and Description |
---|---|
abstract int |
computeHashCode()
This method computes the hashCode for this
HashableState |
int |
hashCode() |
addAllObjects, addObject, equals, getAllObjects, getAllObjectsByClass, getAllUnsetAttributes, getCompleteStateDescription, getCompleteStateDescriptionWithUnsetAttributesAsNull, getFirstObjectOfClass, getObject, getObjectClassesPresent, getObjectMatchingTo, getObjectsOfClass, getPossibleBindingsGivenParamOrderGroups, getSourceState, numTotalObjects, removeAllObjects, removeObject, removeObject, renameObject, renameObject, setObjectsValue
protected int hashCode
protected boolean needToRecomputeHashCode
public abstract int computeHashCode()
HashableState
public int hashCode()
hashCode
in class HashableState