Package com.daml.ledger.javaapi.data
Class CreatedEvent
- java.lang.Object
-
- com.daml.ledger.javaapi.data.CreatedEvent
-
-
Constructor Summary
Constructors Constructor Description CreatedEvent(@NonNull java.util.List<@NonNull java.lang.String> witnessParties, @NonNull java.lang.String eventId, @NonNull Identifier templateId, @NonNull java.lang.String contractId, @NonNull DamlRecord arguments, @NonNull java.util.Optional<java.lang.String> agreementText, @NonNull java.util.Optional<Value> contractKey, @NonNull java.util.Collection<@NonNull java.lang.String> signatories, @NonNull java.util.Collection<@NonNull java.lang.String> observers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static CreatedEvent
fromProto(EventOuterClass.CreatedEvent createdEvent)
@NonNull java.util.Optional<java.lang.String>
getAgreementText()
@NonNull DamlRecord
getArguments()
@NonNull java.lang.String
getContractId()
@NonNull java.util.Optional<Value>
getContractKey()
@NonNull java.lang.String
getEventId()
@NonNull java.util.Set<@NonNull java.lang.String>
getObservers()
@NonNull java.util.Set<@NonNull java.lang.String>
getSignatories()
@NonNull Identifier
getTemplateId()
@NonNull java.util.List<@NonNull java.lang.String>
getWitnessParties()
int
hashCode()
@NonNull EventOuterClass.CreatedEvent
toProto()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.daml.ledger.javaapi.data.Event
toProtoEvent
-
Methods inherited from interface com.daml.ledger.javaapi.data.TreeEvent
toProtoTreeEvent
-
-
-
-
Constructor Detail
-
CreatedEvent
public CreatedEvent(@NonNull java.util.List<@NonNull java.lang.String> witnessParties, @NonNull java.lang.String eventId, @NonNull Identifier templateId, @NonNull java.lang.String contractId, @NonNull DamlRecord arguments, @NonNull java.util.Optional<java.lang.String> agreementText, @NonNull java.util.Optional<Value> contractKey, @NonNull java.util.Collection<@NonNull java.lang.String> signatories, @NonNull java.util.Collection<@NonNull java.lang.String> observers)
-
-
Method Detail
-
getWitnessParties
public @NonNull java.util.List<@NonNull java.lang.String> getWitnessParties()
- Specified by:
getWitnessParties
in interfaceEvent
- Specified by:
getWitnessParties
in interfaceTreeEvent
-
getEventId
public @NonNull java.lang.String getEventId()
- Specified by:
getEventId
in interfaceEvent
- Specified by:
getEventId
in interfaceTreeEvent
-
getTemplateId
public @NonNull Identifier getTemplateId()
- Specified by:
getTemplateId
in interfaceEvent
- Specified by:
getTemplateId
in interfaceTreeEvent
-
getContractId
public @NonNull java.lang.String getContractId()
- Specified by:
getContractId
in interfaceEvent
- Specified by:
getContractId
in interfaceTreeEvent
-
getArguments
public @NonNull DamlRecord getArguments()
-
getAgreementText
public @NonNull java.util.Optional<java.lang.String> getAgreementText()
-
getContractKey
public @NonNull java.util.Optional<Value> getContractKey()
-
getSignatories
public @NonNull java.util.Set<@NonNull java.lang.String> getSignatories()
-
getObservers
public @NonNull java.util.Set<@NonNull java.lang.String> getObservers()
-
equals
public boolean equals(java.lang.Object o)
- 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
-
toProto
public @NonNull EventOuterClass.CreatedEvent toProto()
-
fromProto
public static CreatedEvent fromProto(EventOuterClass.CreatedEvent createdEvent)
-
-