Package com.daml.ledger.javaapi.data
Class Command
- java.lang.Object
-
- com.daml.ledger.javaapi.data.Command
-
- All Implemented Interfaces:
HasCommands
- Direct Known Subclasses:
CreateAndExerciseCommand,CreateCommand,ExerciseByKeyCommand,ExerciseCommand
public abstract class Command extends java.lang.Object implements HasCommands
-
-
Constructor Summary
Constructors Constructor Description Command()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<CreateCommand>asCreateCommand()java.util.Optional<ExerciseCommand>asExerciseCommand()java.util.List<Command>commands()static CommandfromProtoCommand(com.daml.ledger.api.v1.CommandsOuterClass.Command command)com.daml.ledger.api.v1.CommandsOuterClass.CommandtoProtoCommand()
-
-
-
Method Detail
-
commands
public final java.util.List<Command> commands()
- Specified by:
commandsin interfaceHasCommands
-
fromProtoCommand
public static Command fromProtoCommand(com.daml.ledger.api.v1.CommandsOuterClass.Command command)
-
toProtoCommand
public com.daml.ledger.api.v1.CommandsOuterClass.Command toProtoCommand()
-
asCreateCommand
public final java.util.Optional<CreateCommand> asCreateCommand()
-
asExerciseCommand
public final java.util.Optional<ExerciseCommand> asExerciseCommand()
-
-