Documentation Index
Fetch the complete documentation index at: https://cantonfoundation-issue-480-canton-release-line-source-main.mintlify.app/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<Foo> genericFooCid = new ContractId<>("test"); ContractId<Foo> 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<Foo> from ContractId<Bar>, thus: fooCid.equals(genericBarCid) == true genericBarCid.equals(fooCid) == true genericFooCid.equals(genericBarCid) == true genericBarCid.equals(genericFooCid) == true