Class KwStrComparator

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator<KeyWord>

    class KwStrComparator
    extends java.lang.Object
    implements java.util.Comparator<KeyWord>, java.io.Serializable
    Comparator for key word list sorting by key word string. This king of sorting is used while checking the syntax (duplicated key word error)
    • Constructor Summary

      Constructors 
      Constructor Description
      KwStrComparator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(KeyWord kw1, KeyWord kw2)  
      • 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 Detail

      • serialVersionUID

        private static final long serialVersionUID
    • Constructor Detail

      • KwStrComparator

        KwStrComparator()
    • Method Detail

      • compare

        public int compare​(KeyWord kw1,
                           KeyWord kw2)
        Specified by:
        compare in interface java.util.Comparator<KeyWord>