corda / com.r3.corda.networkmanage.common.shell / MenuOptions

MenuOptions

data class MenuOptions

This data class is a more readable wrapper for a list of pairs of a command label and the associated action which should be invoked upon calling that command.

Constructors

<init>

MenuOptions(label: String, action: () -> Unit)

This data class is a more readable wrapper for a list of pairs of a command label and the associated action which should be invoked upon calling that command.

Properties

action

val action: () -> Unit

all

var all: MutableList<<ERROR CLASS><String, () -> Unit>>

label

val label: String

Functions

add

fun add(label: String, action: () -> Unit): MenuOptions