public class TrainerTransition extends Object implements 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(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 TrainerTransition(TransitionTrainer trainer, State from, State to)
public boolean equals(Object o) throws ClassCastException
equals
in class Object
ClassCastException
Copyright © 2020 BioJava. All rights reserved.