is

open fun <T : ModelEvent?> is(@NotNull eventClass: @NotNull Class<T>): Boolean

Checks if the wrapped event is an instance of the specified class.

Return

true if the wrapped event is assignable to the class

Since

2.0.0

Parameters

eventClass

the class to check against

<T>

the type of the event