com.netflix.spinnaker.keel._maps.kt Maven / Gradle / Ivy
package com.netflix.spinnaker.keel
/**
* Filters a map to retain only those entries that have non-null values. Also narrows the
* value type on the map.
*/
@Suppress("UNCHECKED_CAST")
fun Map.filterNotNullValues(): Map =
filterValues { it != null } as Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy