mockspresso-core / com.episode6.hackit.mockspresso.util / CollectionUtil

CollectionUtil

open class CollectionUtil

Static utilities for collections

Constructors

<init>

CollectionUtil()

Static utilities for collections

Functions

concatList

open static fun <T : Any!> concatList(vararg newItems: T): MutableList<T>!open static fun <T : Any!> concatList(collection: MutableCollection<T>!, vararg newItems: T): MutableList<T>!

Create a new list, add the collection, then add the newItems. The original collection is not modified. Only non-null newItems are added.