Class ChoiceMetadata<Tpl,ArgType,ResType>
- java.lang.Object
-
- com.daml.ledger.javaapi.data.codegen.ChoiceMetadata<Tpl,ArgType,ResType>
-
- Type Parameters:
Tpl- The generated template class or marker interface for a Daml interfaceArgType- The choice's argument typeResType- The result from exercising the choice
public final class ChoiceMetadata<Tpl,ArgType,ResType> extends java.lang.ObjectThis represents a Daml choice that can be exercised onContractIds of typeContractId<Tpl>.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringnameThe choice name *
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <Tpl,ArgType,ResType>
ChoiceMetadata<Tpl,ArgType,ResType>create(java.lang.String name, java.util.function.Function<ArgType,Value> encodeArg)INTERNAL API: this is meant for use by the Java code generator, and should not be referenced directly.
-
-
-
Method Detail
-
create
public static <Tpl,ArgType,ResType> ChoiceMetadata<Tpl,ArgType,ResType> create(java.lang.String name, java.util.function.Function<ArgType,Value> encodeArg)
INTERNAL API: this is meant for use by the Java code generator, and should not be referenced directly. Applications should refer to the generatedCHOICE_*fields on templates or interfaces.
-
-