Class ContractWithKey<Id,​Data,​Key>

  • Type Parameters:
    Id - The generated contract ID class alongside the generated Contract class.
    Data - The containing template's associated record type.
    Key - The template's key type.
    All Implemented Interfaces:
    Contract

    public abstract class ContractWithKey<Id,​Data,​Key>
    extends Contract<Id,​Data>
    A superclass for all codegen-generated Contracts whose templates have a key defined.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ContractWithKey​(Id id, Data data, 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)
      INTERNAL API: this is meant for use by the Java code generator, and should not be referenced directly.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • key

        public final java.util.Optional<Key> key
        The contract's key, if it was present in the event.