Class Contract<Id,Data>
- java.lang.Object
-
- com.daml.ledger.javaapi.data.codegen.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.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Optional<java.lang.String>
agreementText
Data
data
Id
id
java.util.Set<java.lang.String>
observers
java.util.Set<java.lang.String>
signatories
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
protected abstract ContractCompanion<? extends Contract<Id,Data>,Id,Data>
getCompanion()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getCompanion
protected abstract ContractCompanion<? extends Contract<Id,Data>,Id,Data> getCompanion()
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-