@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final PhaseAssignment other = (PhaseAssignment) obj; if (!Arrays.equals(assignment, other.assignment)) { return false; } if (combiCSwitch == null) { if (other.combiCSwitch != null) { return false; } } else if (!combiCSwitch.equals(other.combiCSwitch)) { return false; } if (combiDSwitch == null) { if (other.combiDSwitch != null) { return false; } } else if (!combiDSwitch.equals(other.combiDSwitch)) { return false; } if (combiESwitch == null) { if (other.combiESwitch != null) { return false; } } else if (!combiESwitch.equals(other.combiESwitch)) { return false; } if (combiFSwitch == null) { if (other.combiFSwitch != null) { return false; } } else if (!combiFSwitch.equals(other.combiFSwitch)) { return false; } if (priorityASwitch == null) { if (other.priorityASwitch != null) { return false; } } else if (!priorityASwitch.equals(other.priorityASwitch)) { return false; } if (priorityBSwitch == null) { if (other.priorityBSwitch != null) { return false; } } else if (!priorityBSwitch.equals(other.priorityBSwitch)) { return false; } return true; }