CollectionUtil

Functions

Link copied to clipboard
fun <T> first(list: List<T>?): T?

Returns the first element of the list, null if the list is null or empty.

Link copied to clipboard
fun isEmpty(collection: Collection<*>?): Boolean

Whether the given collection is null or has no elements.