Class LasRecordDistanceComparator
- java.lang.Object
-
- org.hortonmachine.gears.io.las.utils.LasRecordDistanceComparator
-
- All Implemented Interfaces:
Comparator<LasRecord>
public class LasRecordDistanceComparator extends Object implements Comparator<LasRecord>
Comparator for distanceLasRecords.The default use in
Collections.sort(java.util.List)orders the points from the nearest to the farest from a given point.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Constructor Summary
Constructors Constructor Description LasRecordDistanceComparator(LasRecord center)LasRecordDistanceComparator(LasRecord center, boolean doReverse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(LasRecord o1, LasRecord o2)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(LasRecord o1, LasRecord o2)
- Specified by:
comparein interfaceComparator<LasRecord>
-
-