Class ContractCompanion.WithKey<Ct,​Id,​Data,​Key>

  • Type Parameters:
    Key - Data's key type as represented in Java codegen.
    Enclosing class:
    ContractCompanion<Ct,​Id,​Data>

    public static final class ContractCompanion.WithKey<Ct,​Id,​Data,​Key>
    extends ContractCompanion<Ct,​Id,​Data>
    • Method Detail

      • fromIdAndRecord

        public Ct fromIdAndRecord​(java.lang.String contractId,
                                  DamlRecord record$,
                                  java.util.Optional<java.lang.String> agreementText,
                                  java.util.Optional<Key> key,
                                  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 a Ct contract.
        Specified by:
        fromCreatedEvent in class ContractCompanion<Ct,​Id,​Data>
        Parameters:
        event - the event to try to parse a contract from
        Returns:
        The parsed contract, with payload and metadata, if present.