public class HeightComparator extends java.lang.Object implements java.util.Comparator<HeightMProvider>
| Constructor and Description |
|---|
HeightComparator()
Default constructor for ascending comparison.
|
HeightComparator(boolean ascending)
General constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(HeightMProvider arg0,
HeightMProvider arg1) |
public HeightComparator(boolean ascending)
ascending - true for ascending sorting or false for descending sortingpublic HeightComparator()
public int compare(HeightMProvider arg0, HeightMProvider arg1)
compare in interface java.util.Comparator<HeightMProvider>