Entry

class Entry @JvmOverloads constructor(action: Action, situationOverrides: Map<Action.Situation, Action> = emptyMap(), predicate: ActionPredicate? = null)(source)

An entry in the action registry, holding the action, its overrides, and its predicate.

Constructors

Link copied to clipboard
constructor(action: Action, situationOverrides: Map<Action.Situation, Action> = emptyMap(), predicate: ActionPredicate? = null)

Properties

Link copied to clipboard

The default Action instance.

Link copied to clipboard

The optional ActionPredicate controlling when the action may be executed.

Link copied to clipboard

Read-only map of action overrides for specific Situations.

Functions

Link copied to clipboard

Returns the action applicable for a given Situation.