Class ContractCompanion.WithoutKey<Ct,Id,Data>
- java.lang.Object
-
- com.daml.ledger.javaapi.data.codegen.ContractTypeCompanion
-
- com.daml.ledger.javaapi.data.codegen.ContractCompanion<Ct,Id,Data>
-
- com.daml.ledger.javaapi.data.codegen.ContractCompanion.WithoutKey<Ct,Id,Data>
-
- Enclosing class:
- ContractCompanion<Ct,Id,Data>
public static final class ContractCompanion.WithoutKey<Ct,Id,Data> extends ContractCompanion<Ct,Id,Data>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ContractCompanion.WithoutKey.NewContract<Ct,Id,Data>
-
Nested classes/interfaces inherited from class com.daml.ledger.javaapi.data.codegen.ContractCompanion
ContractCompanion.WithKey<Ct,Id,Data,Key>, ContractCompanion.WithoutKey<Ct,Id,Data>
-
-
Field Summary
-
Fields inherited from class com.daml.ledger.javaapi.data.codegen.ContractCompanion
fromValue, newContractId
-
Fields inherited from class com.daml.ledger.javaapi.data.codegen.ContractTypeCompanion
TEMPLATE_ID
-
-
Constructor Summary
Constructors Constructor Description WithoutKey(java.lang.String templateClassName, Identifier templateId, java.util.function.Function<java.lang.String,Id> newContractId, java.util.function.Function<DamlRecord,Data> fromValue, ContractCompanion.WithoutKey.NewContract<Ct,Id,Data> newContract)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ct
fromCreatedEvent(CreatedEvent event)
Tries to parse a contract from an event expected to create aCt
contract.Ct
fromIdAndRecord(java.lang.String contractId, DamlRecord record$, java.util.Optional<java.lang.String> agreementText, java.util.Set<java.lang.String> signatories, java.util.Set<java.lang.String> observers)
-
-
-
Constructor Detail
-
WithoutKey
public WithoutKey(java.lang.String templateClassName, Identifier templateId, java.util.function.Function<java.lang.String,Id> newContractId, java.util.function.Function<DamlRecord,Data> fromValue, ContractCompanion.WithoutKey.NewContract<Ct,Id,Data> newContract)
-
-
Method Detail
-
fromIdAndRecord
public Ct fromIdAndRecord(java.lang.String contractId, DamlRecord record$, java.util.Optional<java.lang.String> agreementText, java.util.Set<java.lang.String> signatories, java.util.Set<java.lang.String> observers)
-
fromCreatedEvent
public Ct fromCreatedEvent(CreatedEvent event)
Description copied from class:ContractCompanion
Tries to parse a contract from an event expected to create aCt
contract.- Specified by:
fromCreatedEvent
in classContractCompanion<Ct,Id,Data>
- Parameters:
event
- the event to try to parse a contract from- Returns:
- The parsed contract, with payload and metadata, if present.
-
-