Class BookmarkTypeComparator

  • All Implemented Interfaces:

    public class BookmarkTypeComparator
    extends java.lang.Object
    implements java.util.Comparator<BookmarkType>
    Provides an ordering for bookmark types.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(BookmarkType bt1, BookmarkType bt2)
      Comparator for bookmark types.
      • 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

      • BookmarkTypeComparator

        public BookmarkTypeComparator()
    • Method Detail

      • compare

        public int compare​(BookmarkType bt1,
                           BookmarkType bt2)
        Comparator for bookmark types.
        Specified by:
        compare in interface java.util.Comparator<BookmarkType>
        bt1 - first bookmark type
        bt2 - second bookmark type
        a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.