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

	Neighbour n = (Neighbour) obj;
	//if(n.hashCode()== this.hashCode() & n.classification.equals(this.classification))
	if(Double.compare(this.getDistance(),n.getDistance())==0)
	    return true;
	else
	    return false;
    }