@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } Scope other = (Scope) obj; if (hashCode() != other.hashCode()) { return false; } return true; }