@Override public int compareTo(SpatialObjectPair other){
  return Double.compare(this.distance,other.distance);
}

@ Override public int compareTo ( SpatialObjectPair other ) { return Double . compare ( this . distance , other . distance ) ; }
compares this object with the specified object for order . returns a negative integer , zero , or a positive integer as this object is less than , equal to , or greater than the specified object . < p / >
