AbstractDeniableEventWithResult

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun allow()

Allows this event to occur.

Link copied to clipboard
open fun allowWithResult(result: T)

Allows this event to occur, and sets the result to the given result.

Link copied to clipboard
open override fun deny()

Denies an event from occurring.

Link copied to clipboard
open fun denyWithResult(result: T)

Denies this event from occur, and sets the result to the given result.

Link copied to clipboard
open override fun isAllowed(): Boolean

Checks if this event is allowed to happen.

Properties

Link copied to clipboard
open override var result: T?

The result that is returned by this event.