예제 #1
0
 public boolean equals(Object o) {
   MyPetriTransition t = (MyPetriTransition) o;
   if (t.getId().equals(id)) {
     return true;
   }
   return false;
 }
예제 #2
0
 @Override
 public int compareTo(Object o) {
   // TODO Auto-generated method stub
   MyPetriTransition transition = (MyPetriTransition) o;
   return this.getName().compareTo(transition.getName());
 }