@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Identifier other = (Identifier) obj; if (!location.equals(other.location)) { return false; } if (!name.equals(other.name)) { return false; } return true; }