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<?,?>,?,? extends DamlRecord<?>>> 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<?,?>,?,? extends DamlRecord<?>>>
getContractCompanion(Identifier templateId)
java.util.Optional<java.util.function.Function<CreatedEvent,Contract>>
getDecoder(Identifier templateId)
java.util.Optional<ContractCompanion.FromJson<? extends DamlRecord<?>>>
getJsonDecoder(Identifier templateId)
-
-
-
Constructor Detail
-
ContractDecoder
public ContractDecoder(java.lang.Iterable<? extends ContractCompanion<? extends Contract<?,?>,?,? extends DamlRecord<?>>> 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<?,?>,?,? extends DamlRecord<?>>> getContractCompanion(Identifier templateId)
-
getDecoder
public java.util.Optional<java.util.function.Function<CreatedEvent,Contract>> getDecoder(Identifier templateId)
-
getJsonDecoder
public java.util.Optional<ContractCompanion.FromJson<? extends DamlRecord<?>>> getJsonDecoder(Identifier templateId)
-
-