MapX<K, V> extension

Extensions for Map.

on

Properties

hasOne bool
Returns true if length of this Map is 1.
no setter
isLengthEven bool
Whether length of this Map is even.
no setter
isLengthOdd bool
Whether length of this Map is odd.
no setter

Methods

ifEmpty(Map<K, V> value) Map<K, V>
Returns this Map if it's not empty, otherwise returns value.
toUnmodifiableMap() Map<K, V>
Creates an unmodifiable Map containing the entries of this Map.