@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; OldNodeState other = (OldNodeState) obj; if (eastNorth == null) { if (other.eastNorth != null) return false; } else if (!eastNorth.equals(other.eastNorth)) return false; if (latlon == null) { if (other.latlon != null) return false; } else if (!latlon.equals(other.latlon)) return false; if (modified != other.modified) return false; return true; }