reifyOrNull

abstract fun reifyOrNull(element: Any?): Element?(source)

Checks if the element lays in described by this instance domain, and if the element does lay in the domain, returns it, otherwise returns null.

Return

The element cast to Element if it is in the domain, null otherwise.

Parameters

element

The element to reify.