org.crosswire.jsword.book

## Class BookComparators

- java.lang.Object
- - org.crosswire.jsword.book.BookComparators

-     public final class BookComparators
      extends Object

  Provides different ways to sort Books.
  Author:
    DM Smith
  See Also:
    `The GNU Lesser General Public License for details.`

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `private` | `BookComparators()` Ensure we can't be created

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Comparator<Book>` | `getDefault()` Order by default Book ordering
    `static Comparator<Book>` | `getInitialComparator()` Order by Initials.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BookComparators

          private BookComparators()

      Ensure we can't be created

  - ### Method Detail

    - #### getDefault

          public static Comparator<Book> getDefault()

      Order by default Book ordering
      Returns:
        the desired Comparator

    - #### getInitialComparator

          public static Comparator<Book> getInitialComparator()

      Order by Initials.
      Returns:
        the desired Comparator