Skip to content

ValueEvent

abstract class ValueEvent<Value> < Event

Abstract event, with a value.

Member Functions

Name Description
hasValue Does this have a value?
value Get the value.
coerce Coerce a value out of a record.

Member Function Details

coerce

function coerce(record:Record) -> Value

Coerce a value out of a record. This tries to cast the value in the record to the required type and return it.

hasValue

abstract function hasValue() -> Boolean

Does this have a value?

value

abstract function value() -> Value

Get the value.