Lists<E> extension
Provides functions for working with Lists.
Most functions modify a list in-place rather than produce a new list.
- on
-
- List<
E>
- List<
Methods
-
containsAll(
Iterable< Object?> other) → bool -
Available on List<
Whether this list contains all elements inE> , provided by the Lists extensionother
. -
removeAll(
Iterable< Object?> other) → void -
Available on List<
Removes all elements that are present in both this list andE> , provided by the Lists extensionother
. -
replaceAll(
void function(Consume< E> add, E element)) → void -
Available on List<
Replaces elements usingE> , provided by the Lists extensionfunction
. -
retainAll(
Iterable< Object?> other) → void -
Available on List<
Retains all elements that are present in both this list andE> , provided by the Lists extensionother
. -
swap(
int a, int b) → void - Swaps the elements at the given indexes in-place.
Operators
-
operator *(
int times) → List< E> - Repeats this list the give number of times.