Class ContractId<T>
java.lang.Object
com.daml.ledger.javaapi.data.codegen.ContractId<T>
- Type Parameters:
T
- A template type
- All Implemented Interfaces:
Exercises<ExerciseCommand>
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.daml.ledger.javaapi.data.codegen.Exercises
Exercises.Archivable<Cmd>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
makeExerciseCmd
(Choice<?, ? super A, R> choice, A choiceArgument) INTERNAL API: this is meant for use by the Java code generator, and should not be referenced directly.toString()
final Value
toValue()
-
Field Details
-
contractId
-
-
Constructor Details
-
ContractId
-
-
Method Details
-
toValue
-
makeExerciseCmd
INTERNAL API: this is meant for use by the Java code generator, and should not be referenced directly. Applications should call choice-specificexercise*
methods generated from their Daml code instead. -
equals
-
hashCode
public int hashCode() -
toString
-