@Override public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Iteration other = (Iteration) obj; if (number != other.number) return false; if (project == null) { if (other.project != null) return false; } else if (!project.equals(other.project)) return false; return true; }