public class ReflectiveHashableStateFactory extends java.lang.Object implements HashableStateFactory
State objects by default implement the HashableState
interface. The factory will then simply return that state object, cast as a HashableState or throw
a runtime exception if the state does not implement HashableState. Note that this means that
state equality and hashing will defer to the State object's implementaiton.| Constructor and Description |
|---|
ReflectiveHashableStateFactory() |
| Modifier and Type | Method and Description |
|---|---|
HashableState |
hashState(State s)
Turns
State s into a HashableState |
public HashableState hashState(State s)
HashableStateFactoryState s into a HashableStatehashState in interface HashableStateFactorys - the input State to transform.HashableState.