RMap<K, V> extension

on

Methods

exceptEmpty() Map<K, V?>
  • return the map without key of empty values
  • exceptNull() Map<K, V>
  • return the map without key of null values
  • exceptNullAndEmpty() Map<K, V?>
  • return the map without key of null values and empty
  • expect(List<K> keys) Map<K, V?>
  • return the map without some keys
  • flip() Map<V, K>
  • swaps the collection's keys with their corresponding values
  • only(List<K> keys) Map<K, V?>
  • return a new Map with only keys you need it
  • whereNull() Map<K, V>
  • return a new map with the null values from the original map only