@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; }
@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; }
public AtomService clone() { AtomService serviceTemp = new AtomService(number, qos.clone()); serviceTemp.redoCount = this.redoCount; serviceTemp.free = this.free; return serviceTemp; }