Class BookmarkComparator

  • All Implemented Interfaces:
    java.util.Comparator<Bookmark>

    public class BookmarkComparator
    extends java.lang.Object
    implements java.util.Comparator<Bookmark>
    Provides an ordering for bookmarks.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(Bookmark bm1, Bookmark bm2)
      Comparator for bookmarks.
      • 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

      • BookmarkComparator

        public BookmarkComparator()
    • Method Detail

      • compare

        public int compare​(Bookmark bm1,
                           Bookmark bm2)
        Comparator for bookmarks.
        Specified by:
        compare in interface java.util.Comparator<Bookmark>
        Parameters:
        bm1 - first bookmark
        bm2 - second bookmark
        Returns:
        a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.