public class TrainerTransition
extends java.lang.Object
implements java.io.Serializable
It is hash-code-able, and has a sensible equality operator.
Modifier and Type | Field and Description |
---|---|
State |
from |
State |
to |
TransitionTrainer |
trainer |
Constructor and Description |
---|
TrainerTransition(TransitionTrainer trainer,
State from,
State to) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Two transitions are equal if they have the same trainer, from and to states.
|
int |
hashCode()
The hash code is model.hashCode() ^ from.hashCode() ^ to.hashCode()
|
public TransitionTrainer trainer
public State from
public State to
public TrainerTransition(TransitionTrainer trainer, State from, State to)
public boolean equals(java.lang.Object o) throws java.lang.ClassCastException
equals
in class java.lang.Object
java.lang.ClassCastException
public int hashCode()
hashCode
in class java.lang.Object