Class BookmarkComparator

java.lang.Object
ghidra.program.model.listing.BookmarkComparator
All Implemented Interfaces:
Comparator<Bookmark>

public class BookmarkComparator extends Object implements Comparator<Bookmark>
Provides an ordering for bookmarks.
  • Constructor Details

    • BookmarkComparator

      public BookmarkComparator()
  • Method Details

    • compare

      public int compare(Bookmark bm1, Bookmark bm2)
      Comparator for bookmarks.
      Specified by:
      compare in interface 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.