Package ghidra.program.model.listing

# 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 Summary

  Constructors
  Constructor
  Description
  `BookmarkTypeComparator()`

- ## Method Summary

  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 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.