Class LocaleEntryComparator

  • All Implemented Interfaces:
    java.util.Comparator<java.util.Map.Entry<Lang,​Message>>

    public class LocaleEntryComparator
    extends java.lang.Object
    implements java.util.Comparator<java.util.Map.Entry<Lang,​Message>>
    Compares Locale Map Entries and sorts them alphabetically according to the Enum Names.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.util.Map.Entry<Lang,​Message> o1, java.util.Map.Entry<Lang,​Message> 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
    • Constructor Detail

      • LocaleEntryComparator

        public LocaleEntryComparator()
    • Method Detail

      • compare

        public int compare​(java.util.Map.Entry<Lang,​Message> o1,
                           java.util.Map.Entry<Lang,​Message> o2)
        Specified by:
        compare in interface java.util.Comparator<java.util.Map.Entry<Lang,​Message>>