All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.http4k.security.oauth.format.util.kt Maven / Gradle / Ivy

package org.http4k.security.oauth.format

internal fun  Map.value(name: String, fn: Function1) =
    this[name]?.toString()?.let(fn)

internal fun Map<*, *>.string(name: String) = this[name]?.toString()
internal fun Map<*, *>.boolean(name: String) = this[name]?.toString()?.toBoolean()
internal fun Map<*, *>.long(name: String) = this[name]?.toString()?.toBigDecimal()?.toLong()

@Suppress("UNCHECKED_CAST")
internal fun Map<*, *>.map(name: String) = this[name] as Map?

@Suppress("UNCHECKED_CAST")
internal fun Map<*, *>.strings(name: String) = this[name] as List?





© 2015 - 2025 Weber Informatics LLC | Privacy Policy