Class ContractCompanion<Ct,Id,Data>
- java.lang.Object
-
- com.daml.ledger.javaapi.data.codegen.ContractCompanion<Ct,Id,Data>
-
- Direct Known Subclasses:
ContractCompanion.WithKey
,ContractCompanion.WithoutKey
public abstract class ContractCompanion<Ct,Id,Data> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContractCompanion.WithKey<Ct,Id,Data,Key>
static class
ContractCompanion.WithoutKey<Ct,Id,Data>
-
Field Summary
Fields Modifier and Type Field Description protected java.util.function.Function<DamlRecord,Data>
fromValue
protected java.util.function.Function<java.lang.String,Id>
newContractId
Identifier
TEMPLATE_ID
-
Constructor Summary
Constructors Modifier Constructor Description protected
ContractCompanion(java.lang.String templateClassName, Identifier templateId, java.util.function.Function<java.lang.String,Id> newContractId, java.util.function.Function<DamlRecord,Data> fromValue)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Ct
fromCreatedEvent(CreatedEvent event)
-
-
-
Field Detail
-
TEMPLATE_ID
public final Identifier TEMPLATE_ID
-
newContractId
protected final java.util.function.Function<java.lang.String,Id> newContractId
-
fromValue
protected final java.util.function.Function<DamlRecord,Data> fromValue
-
-
Constructor Detail
-
ContractCompanion
protected ContractCompanion(java.lang.String templateClassName, Identifier templateId, java.util.function.Function<java.lang.String,Id> newContractId, java.util.function.Function<DamlRecord,Data> fromValue)
-
-
Method Detail
-
fromCreatedEvent
public abstract Ct fromCreatedEvent(CreatedEvent event)
-
-