Esempio n. 1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + number;
   result = prime * result + ((qos == null) ? 0 : qos.hashCode());
   return result;
 }
Esempio n. 2
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) {
     return true;
   }
   if (obj == null) {
     return false;
   }
   if (!(obj instanceof AtomService)) {
     return false;
   }
   AtomService other = (AtomService) obj;
   if (number != other.number) {
     return false;
   }
   if (qos == null) {
     if (other.qos != null) {
       return false;
     }
   } else if (!qos.equals(other.qos)) {
     return false;
   }
   return true;
 }
Esempio n. 3
0
 public AtomService clone() {
   AtomService serviceTemp = new AtomService(number, qos.clone());
   serviceTemp.redoCount = this.redoCount;
   serviceTemp.free = this.free;
   return serviceTemp;
 }