addAll

open fun addAll(@NonNull items: Array<T>, mayModifyInput: Boolean)(source)

Adds the given items to the list. Equivalent to calling add in a loop, except the callback events may be in a different order/granularity since addAll can batch them for better performance.

If allowed, will reference the input array during, and possibly after, the operation to avoid extra memory allocation, in which case you should not continue to reference or modify the array yourself.

Parameters

items

Array of items to be added into the list.

mayModifyInput

If true, SortedList is allowed to modify and permanently reference the input array.

See also


open fun addAll(@NonNull items: Array<T>)(source)

Adds the given items to the list. Does not modify or retain the input.

Parameters

items

Array of items to be added into the list.

See also


open fun addAll(@NonNull items: Collection<T>)(source)

Adds the given items to the list. Does not modify or retain the input.

Parameters

items

Collection of items to be added into the list.

See also