Interface Ordered<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Comparator<T> comparator()
      Returns the comparator that governs the ordering of elements in this collection.
    • Method Detail

      • comparator

        java.util.Comparator<T> comparator()
        Returns the comparator that governs the ordering of elements in this collection. The returned comparator must be consistent with the collection's iteration order.
        Returns:
        the comparator defining the element order