Class InterfaceCompanion<I,View>
- java.lang.Object
-
- com.daml.ledger.javaapi.data.codegen.ContractTypeCompanion<I,View>
-
- com.daml.ledger.javaapi.data.codegen.InterfaceCompanion<I,View>
-
- Type Parameters:
I- The generated interface marker class.View- TheDamlRecordsubclass representing the interface view, as may be retrieved from the ACS or transaction stream.
public abstract class InterfaceCompanion<I,View> extends ContractTypeCompanion<I,View>
Metadata and utilities associated with an interface as a whole. Its subclasses serve to disambiguate various generatedtoInterfaceoverloads.
-
-
Field Summary
Fields Modifier and Type Field Description ValueDecoder<View>valueDecoder-
Fields inherited from class com.daml.ledger.javaapi.data.codegen.ContractTypeCompanion
choices, TEMPLATE_ID
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedInterfaceCompanion(Identifier templateId, ValueDecoder<View> valueDecoder, java.util.List<ChoiceMetadata<I,?,?>> choices)INTERNAL API: this is meant for use by the Java code generator, and should not be referenced directly.
-
-
-
Field Detail
-
valueDecoder
public final ValueDecoder<View> valueDecoder
-
-
Constructor Detail
-
InterfaceCompanion
protected InterfaceCompanion(Identifier templateId, ValueDecoder<View> valueDecoder, java.util.List<ChoiceMetadata<I,?,?>> choices)
INTERNAL API: this is meant for use by the Java code generator, and should not be referenced directly. Applications should refer to theINTERFACEfield on generated code for Daml interfaces instead.
-
-