|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.bio.dp.Transition
This is a small and ugly class for storing a transition. It is hash-code-able, and has a sensible equality operator.
Field Summary | |
State |
from
|
State |
to
|
Constructor Summary | |
Transition(State from,
State to)
|
Method Summary | |
boolean |
equals(java.lang.Object o)
Two transitions are equal if they have the same from and to states. |
int |
hashCode()
The hash code is from.hashCode() ^ to.hashCode() |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public State from
public State to
Constructor Detail |
public Transition(State from, State to)
Method Detail |
public boolean equals(java.lang.Object o) throws java.lang.ClassCastException
java.lang.ClassCastException
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |