Class ContractCompanion<Ct,​Id,​Data>

    • 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)