Interface Sortable<E>

All Known Subinterfaces:
SortableProcedure<E>, SortingAggregator<E,​R>, XBasicTable.Values<K,​V>, XChart.Values<K,​V>, XDecreasingEnum<E>, XDecreasingList<E>, XDecreasingSequence<E>, XEnum<E>, XIncreasingEnum<E>, XIncreasingList<E>, XIncreasingSequence<E>, XList<E>, XReference<E>, XSequence<E>, XSettingEnum<E>, XSettingList<E>, XSettingSequence<E>, XSortableEnum<E>, XSortableSequence<E>, XTable<K,​V>, XTable.Keys<K,​V>, XTable.Values<K,​V>
All Known Implementing Classes:
ArrayAccessor, ArrayCollector, BulkList, CqlWrapperCollectorProcedure, EqBulkList, EqHashEnum, EqHashTable, EqHashTable.Keys, EqHashTable.Values, FixedList, HashEnum, HashTable, HashTable.Keys, HashTable.Values, LimitList, LinkReference.Default, ListAccessor, LockedList, Single, Singleton, SubList, SubListAccessor, SubListProcessor, SynchList

public interface Sortable<E>
Single concern type defining that a sub type can be sorted according to an external Comparator.

This type is mutually exclusive to Sorted.

  • Method Summary

    Modifier and Type Method Description
    Sortable<E> sort​(Comparator<? super E> comparator)
    Sorts this collection according to the given comparator and returns itself.
  • Method Details

    • sort

      Sortable<E> sort​(Comparator<? super E> comparator)
      Sorts this collection according to the given comparator and returns itself.
      Parameters:
      comparator - to sort this collection
      Returns:
      this