Class BookmarkTypeComparator

java.lang.Object
ghidra.program.model.listing.BookmarkTypeComparator
All Implemented Interfaces:
Comparator<BookmarkType>

public class BookmarkTypeComparator extends Object implements Comparator<BookmarkType>
Provides an ordering for bookmark types.
  • Constructor Details

    • BookmarkTypeComparator

      public BookmarkTypeComparator()
  • Method Details

    • compare

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