Результат добавления события (объект события или ошибка).
AddEventResult(event: RoadEvent)
event
RoadEvent
AddEventResult(error: AddEventError)
error
AddEventError
fun match(event: Function1, error: Function1): T
(RoadEvent) -> T
(AddEventError) -> T
T
fun toString(): String
String
fun hashCode(): Int
Int
fun equals(other: Any?): Boolean
other
Any?
Boolean
val isEvent
val asEvent
RoadEvent?
val isError
val asError
AddEventError?
val value