findData

open fun <M> findData(key: DataKey<M>): Optional<M>(source)

Gets data for this node using the given key or returns an Optional.empty().

Return

The data.

Parameters

<M>

The type of the data.

key

The key for the data

See also