Package mgui.morph.sections
Class MapWeightComparator
java.lang.Object
mgui.morph.sections.MapWeightComparator
- All Implemented Interfaces:
java.util.Comparator
public class MapWeightComparator
extends java.lang.Object
implements java.util.Comparator
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MapWeightComparator()
MapWeightComparator(int sort)
-
Method Summary
Modifier and Type Method Description int
compare(java.lang.Object obj1, java.lang.Object obj2)
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
-
Field Details
-
SORT_ASC
public static final int SORT_ASC- See Also:
- Constant Field Values
-
SORT_DSC
public static final int SORT_DSC- See Also:
- Constant Field Values
-
sortBy
public int sortBy
-
-
Constructor Details
-
MapWeightComparator
public MapWeightComparator() -
MapWeightComparator
public MapWeightComparator(int sort)
-
-
Method Details
-
compare
public int compare(java.lang.Object obj1, java.lang.Object obj2)- Specified by:
compare
in interfacejava.util.Comparator
-