getTransition

inline fun <T : Transition<ID, V, S>> getTransition(): T

Gets a specific transition by its type.

Return

The requested transition instance

Parameters

T

The specific transition type to retrieve

Throws

if no transition of the specified type is found


fun <T : Transition<ID, V, S>> getTransition(klass: KClass<T>): T

Gets a specific transition by its KClass.

Return

The requested transition instance

Parameters

klass

The KClass of the transition to retrieve

Throws

if no transition of the specified type is found