compareTo method

  1. @override
int compareTo(
  1. CellMIC o
)
override

For maximum efficieny sort the PriorityQueue with largest maxDistance at front. Since Java PQ sorts least-first, need to invert the comparison

Implementation

@override
int compareTo(CellMIC o) {
  return -maxDist.compareTo(o.maxDist);
}