Class Contract<Id,​Data>

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

    public abstract class Contract<Id,​Data>
    extends java.lang.Object
    implements Contract
    A superclass for all codegen-generated Contracts.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Contract​(Id id, Data data, java.util.Optional<java.lang.String> agreementText, java.util.Set<java.lang.String> signatories, java.util.Set<java.lang.String> observers)  
    • Field Detail

      • id

        public final Id id
      • data

        public final Data data
      • agreementText

        public final java.util.Optional<java.lang.String> agreementText
      • signatories

        public final java.util.Set<java.lang.String> signatories
      • observers

        public final java.util.Set<java.lang.String> observers
    • Constructor Detail

      • Contract

        protected Contract​(Id id,
                           Data data,
                           java.util.Optional<java.lang.String> agreementText,
                           java.util.Set<java.lang.String> signatories,
                           java.util.Set<java.lang.String> observers)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object