@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; InstrumentPosition other = (InstrumentPosition) obj; if (alias == null) { if (other.alias != null) return false; } else if (!alias.equals(other.alias)) return false; if (instrumentModel == null) { if (other.instrumentModel != null) return false; } else if (!instrumentModel.equals(other.instrumentModel)) return false; if (positionId != other.positionId) return false; return true; }
if (instrumentModel == null) { if (other.instrumentModel != null) return false; } else if (!instrumentModel.equals(other.instrumentModel)) return false; if (runs == null) { if (other.runs != null) return false;