ComparableList<E extends Comparable> extension
Properties
-
sorted
→ List<E>
-
Returns a List of all elements sorted according to their natural sort
order.
no setter
-
sortedDescending
→ List<E>
-
Returns a List of all elements sorted descending according to their
natural sort order.
no setter
Methods
-
binarySearch({E? element, int? fromIndex, int? toIndex})
→ int
-
Searches this List or its range for the provided element using the
binary search algorithm. The List is expected to be sorted into
ascending order according to the Comparable natural ordering of its
elements, otherwise the result is undefined.