Complete documentation page mirrored and translated for learning. Attribution is shown at the bottom of each article.

阅读中文版

referencejavacom-daml-ledger-javaapi-data-codegencontractid

ContractId

Documentation Index

Fetch the complete documentation index at: https://docs.canton.network/llms.txt Use this file to discover all available pages before exploring further.

ContractId

This class is used as a super class for all concrete ContractIds generated by the java codegen with the following properties: Foo.ContractId fooCid = new Foo.ContractId(“test”); Bar.ContractId barCid = new Bar.ContractId(“test”); ContractId genericFooCid = new ContractId<>(“test”); ContractId genericBarCid = new ContractId<>(“test”); fooCid.equals(genericFooCid) == true; genericFooCid.equals(fooCid) == true; fooCid.equals(barCid) == false; barCid.equals(fooCid) == false; Due to erase, we cannot distinguish ContractId from ContractId, thus: fooCid.equals(genericBarCid) == true genericBarCid.equals(fooCid) == true genericFooCid.equals(genericBarCid) == true genericBarCid.equals(genericFooCid) == true

ContractId - stable

Upstream docs: Open

Signature

public class ContractId<T> extends Object implements Exercises<ExerciseCommand>

Members

DocsMemberIntroducedDeprecatedRemoved
OpenContractId(String)3.4.8--
OpencontractId3.4.8--
Openequals(Object)3.4.8--
OpenhashCode()3.4.8--
OpenmakeExerciseCmd(Choice<?, ? super A, R>, A)3.4.8--
OpentoString()3.4.8--
OpentoValue()3.4.8--

Mirrored from Canton Network official documentation (CC-BY-4.0) by CC Privacy Club for learning purposes.