@ Override public int compareTo ( DistanceEntry < E > o ) { int comp = Double . compare ( distance , o . distance ) ; return comp ; // return comp != 0 ? comp : // entry.getEntryID().compareTo(o.entry.getEntryID()); }
Compares this object with the specified object for order .