getMaybe

fun <T> Registry.getMaybe(registryKey: RegistryKey<T>): Maybe<T>(source)

Retrieves value wrapped in Some by the specified registryKey or returns None if no association is present.

Receiver

The Registry in which to look up the registryKey.

Return

A Some containing the value if present, or None if the registryKey is not found.

Parameters

registryKey

The RegistryKey to look up in this registry.

Type Parameters

T

The type of the value associated with the registryKey.