Class ContractDecoder
- java.lang.Object
-
- com.daml.ledger.javaapi.data.codegen.ContractDecoder
-
public class ContractDecoder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ContractDecoder(java.lang.Iterable<? extends ContractCompanion<? extends Contract<?,?>,?,?>> companions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Contract<?,?>
fromCreatedEvent(CreatedEvent event)
java.util.Optional<? extends ContractCompanion<? extends Contract<?,?>,?,?>>
getContractCompanion(Identifier templateId)
java.util.Optional<java.util.function.Function<CreatedEvent,Contract>>
getDecoder(Identifier templateId)
-
-
-
Constructor Detail
-
ContractDecoder
public ContractDecoder(java.lang.Iterable<? extends ContractCompanion<? extends Contract<?,?>,?,?>> companions)
-
-
Method Detail
-
fromCreatedEvent
public Contract<?,?> fromCreatedEvent(CreatedEvent event) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
getContractCompanion
public java.util.Optional<? extends ContractCompanion<? extends Contract<?,?>,?,?>> getContractCompanion(Identifier templateId)
-
getDecoder
public java.util.Optional<java.util.function.Function<CreatedEvent,Contract>> getDecoder(Identifier templateId)
-
-