public class IDSimpleHashableState extends WrappedHashableState
s| Constructor and Description |
|---|
IDSimpleHashableState() |
IDSimpleHashableState(State s) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendHashCodeForValue(org.apache.commons.lang3.builder.HashCodeBuilder hashCodeBuilder,
java.lang.Object key,
java.lang.Object value) |
protected int |
computeFlatHashCode(State s) |
protected int |
computeHashCode(State s)
Computes the hash code for the input state.
|
protected int |
computeOOHashCode(OOState s) |
boolean |
equals(java.lang.Object obj) |
protected boolean |
flatStatesEqual(State s1,
State s2) |
int |
hashCode() |
protected boolean |
ooStatesEqual(OOState s1,
OOState s2) |
protected boolean |
statesEqual(State s1,
State s2)
Returns true if the two input states are equal.
|
protected boolean |
valuesEqual(java.lang.Object key,
java.lang.Object v1,
java.lang.Object v2)
Returns whether two values are equal.
|
getS, s, setSpublic IDSimpleHashableState()
public IDSimpleHashableState(State s)
public int hashCode()
hashCode in class WrappedHashableStatepublic boolean equals(java.lang.Object obj)
equals in class WrappedHashableStateprotected final int computeHashCode(State s)
s - the input state for which a hash code is to be computedprotected int computeOOHashCode(OOState s)
protected int computeFlatHashCode(State s)
protected void appendHashCodeForValue(org.apache.commons.lang3.builder.HashCodeBuilder hashCodeBuilder,
java.lang.Object key,
java.lang.Object value)
protected boolean statesEqual(State s1, State s2)
protected boolean valuesEqual(java.lang.Object key,
java.lang.Object v1,
java.lang.Object v2)
key - the state variable keyv1 - the first value to comparev2 - the second value to compare