Exemple #1
0
 public Object clone() {
   try {
     TransHopMeta retval = (TransHopMeta) super.clone();
     retval.setID(-1L);
     retval.setTempId(this.tempId);
     return retval;
   } catch (CloneNotSupportedException e) {
     return null;
   }
 }
Exemple #2
0
 /** Compare 2 hops. */
 public int compareTo(TransHopMeta obj) {
   return toString().compareTo(obj.toString());
 }
Exemple #3
0
 public boolean equals(Object obj) {
   TransHopMeta other = (TransHopMeta) obj;
   if (from_step == null || to_step == null) return false;
   return from_step.equals(other.getFromStep()) && to_step.equals(other.getToStep());
 }