Class QuestComparator

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

    public class QuestComparator
    extends java.lang.Object
    implements java.util.Comparator<Quest>, java.io.Serializable
    A Comparator to compare Quest instances by title and code.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      QuestComparator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(@NotNull Quest o1, @NotNull Quest 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

      • QuestComparator

        public QuestComparator()
    • Method Detail

      • compare

        public int compare​(@NotNull
                           @NotNull Quest o1,
                           @NotNull
                           @NotNull Quest o2)
        Specified by:
        compare in interface java.util.Comparator<Quest>