Package org.biojava.bio.dp
Class Transition
java.lang.Object
org.biojava.bio.dp.Transition
- All Implemented Interfaces:
Serializable
This is a small and ugly class for storing a transition. It is hash-code-able,
and has a sensible equality operator.
- Author:
- Matthew Pocock
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
from
-
to
-
-
Constructor Details
-
Transition
-
-
Method Details
-
equals
Two transitions are equal if they have the same from and to states.- Overrides:
equals
in classObject
- Throws:
ClassCastException
-
hashCode
The hash code is from.hashCode() ^ to.hashCode()
-