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

    Fields
    Modifier and Type Field Description
    static int SORT_ASC  
    static int SORT_DSC  
    int sortBy  
  • 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

  • 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 interface java.util.Comparator