MapTransformExtension<K, V> extension

Convenience methods for selecting and filtering map entries.

on

Methods

omit(Iterable<K> keys) Map<K, V>

Available on Map<K, V>, provided by the MapTransformExtension extension

Returns a copy excluding keys.
pick(Iterable<K> keys) Map<K, V>

Available on Map<K, V>, provided by the MapTransformExtension extension

Returns a copy containing only keys.
whereEntries(bool test(K key, V value)) Map<K, V>

Available on Map<K, V>, provided by the MapTransformExtension extension

Returns a copy with entries that satisfy test.
withoutNullValues() Map<K, V>

Available on Map<K, V>, provided by the MapTransformExtension extension

Returns a copy without null values.