NotEmptyMap
Parameters
K
The type of map keys.
V
The type of map values.
Types
Link copied to clipboard
Error thrown when creating a NotEmptyMap fails.
Functions
Properties
Extensions
Link copied to clipboard
Returns a NotEmptyMap containing all the entries of this map, or an IllegalArgumentException if this map is empty.
Returns a NotEmptyMap containing all the entries of this map, or throws a NotEmptyMap.ConstructionError if this map is empty.
Link copied to clipboard
inline fun <K, V> Map<K, V>.toNotEmptyMapOrElse(defaultValue: (Map<K, V>) -> NotEmptyMap<K, V>): NotEmptyMap<K, V>
Returns a NotEmptyMap containing all the entries of this map, or returns the result of calling the defaultValue function if this map is empty.
Link copied to clipboard
Returns a NotEmptyMap containing all the entries of this map, or returns null
if this map is empty.
Link copied to clipboard
Returns a NotEmptyMap containing all the entries of this map, or throws an IllegalArgumentException if this map is empty.