Class LasRecordGroundElevationComparator
- java.lang.Object
-
- org.hortonmachine.gears.io.las.utils.LasRecordGroundElevationComparator
-
- All Implemented Interfaces:
Comparator<LasRecord>
public class LasRecordGroundElevationComparator extends Object implements Comparator<LasRecord>
Comparator for elevation inLasRecords.The default use in
Collections.sort(java.util.List)orders the points from the lowest to the highest elevation.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Constructor Summary
Constructors Constructor Description LasRecordGroundElevationComparator()LasRecordGroundElevationComparator(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>
-
-