spring-framework / org.springframework.util / CollectionUtils / isEmpty

isEmpty

open static fun isEmpty(@Nullable collection: MutableCollection<*>): Boolean

Return true if the supplied Collection is null or empty. Otherwise, return false.

Parameters

collection - the Collection to check

Return
whether the given Collection is empty

open static fun isEmpty(@Nullable map: MutableMap<*, *>): Boolean

Return true if the supplied Map is null or empty. Otherwise, return false.

Parameters

map - the Map to check

Return
whether the given Map is empty