recycleData

open fun recycleData(@NonNull data: Array<T>, itemCount: Int)(source)

Recycle the objects created in fillData if necessary.

Parameters

data

Array of data items. Should not be accessed beyond itemCount.

itemCount

The data item count.