ListComparableExtensions<E extends Comparable<E> > extension
Various extensions on lists of comparable elements.
- on
-
- List<
E>
- List<
Methods
-
binarySearch(
E element, [int compare(E, E)?]) → int -
Available on List<
Returns the index ofE> , provided by the ListComparableExtensions extensionelement
in this sorted list. -
lowerBound(
E element, [int compare(E, E)?]) → int -
Available on List<
Returns the index whereE> , provided by the ListComparableExtensions extensionelement
should be in this sorted list. -
sortRange(
int start, int end, [int compare(E a, E b)?]) → void -
Available on List<
Sort a range of elements byE> , provided by the ListComparableExtensions extensioncompare
.