Class ContractWithKey<Id,Data,Key>
- java.lang.Object
-
- com.daml.ledger.javaapi.data.codegen.Contract<Id,Data>
-
- com.daml.ledger.javaapi.data.codegen.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 akey
defined.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Optional<Key>
key
The contract's key, if it was present in the event.-
Fields inherited from class com.daml.ledger.javaapi.data.codegen.Contract
agreementText, data, id, observers, signatories
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
int
hashCode()
JsonLfEncoder
keyJsonEncoder()
java.lang.String
keyToJson()
java.lang.String
toString()
-
Methods inherited from class com.daml.ledger.javaapi.data.codegen.Contract
getContractTypeId
-
-
-
-
Field Detail
-
key
public final java.util.Optional<Key> key
The contract's key, if it was present in the event.
-
-
Method Detail
-
equals
public final boolean equals(java.lang.Object object)
-
keyJsonEncoder
public JsonLfEncoder keyJsonEncoder()
-
keyToJson
public java.lang.String keyToJson()
-
-