Package com.daml.ledger.javaapi.data
Class DamlRecord
- java.lang.Object
-
- com.daml.ledger.javaapi.data.Value
-
- com.daml.ledger.javaapi.data.DamlRecord
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DamlRecord.Field
-
Constructor Summary
Constructors Constructor Description DamlRecord(@NonNull DamlRecord.Field... fields)
DamlRecord(@NonNull Identifier recordId, @NonNull DamlRecord.Field... fields)
DamlRecord(@NonNull Identifier recordId, @NonNull java.util.List<@NonNull DamlRecord.Field> fields)
DamlRecord(@NonNull java.util.List<@NonNull DamlRecord.Field> fields)
DamlRecord(@NonNull java.util.Optional<Identifier> recordId, @NonNull java.util.List<@NonNull DamlRecord.Field> fields, java.util.Map<java.lang.String,Value> fieldsMap)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static @NonNull DamlRecord
fromProto(com.daml.ledger.api.v1.ValueOuterClass.Record record)
@NonNull java.util.List<DamlRecord.Field>
getFields()
@NonNull java.util.Map<@NonNull java.lang.String,@NonNull Value>
getFieldsMap()
@NonNull java.util.Optional<Identifier>
getRecordId()
int
hashCode()
com.daml.ledger.api.v1.ValueOuterClass.Value
toProto()
com.daml.ledger.api.v1.ValueOuterClass.Record
toProtoRecord()
java.lang.String
toString()
-
-
-
Constructor Detail
-
DamlRecord
public DamlRecord(@NonNull Identifier recordId, @NonNull DamlRecord.Field... fields)
-
DamlRecord
public DamlRecord(@NonNull DamlRecord.Field... fields)
-
DamlRecord
public DamlRecord(@NonNull Identifier recordId, @NonNull java.util.List<@NonNull DamlRecord.Field> fields)
-
DamlRecord
public DamlRecord(@NonNull java.util.List<@NonNull DamlRecord.Field> fields)
-
DamlRecord
public DamlRecord(@NonNull java.util.Optional<Identifier> recordId, @NonNull java.util.List<@NonNull DamlRecord.Field> fields, java.util.Map<java.lang.String,Value> fieldsMap)
-
-
Method Detail
-
fromProto
public static @NonNull DamlRecord fromProto(com.daml.ledger.api.v1.ValueOuterClass.Record record)
-
toProto
public com.daml.ledger.api.v1.ValueOuterClass.Value toProto()
-
toProtoRecord
public com.daml.ledger.api.v1.ValueOuterClass.Record toProtoRecord()
-
getRecordId
public @NonNull java.util.Optional<Identifier> getRecordId()
-
getFields
public @NonNull java.util.List<DamlRecord.Field> getFields()
-
getFieldsMap
public @NonNull java.util.Map<@NonNull java.lang.String,@NonNull Value> getFieldsMap()
- Returns:
- the Map of this DamlRecord fields containing the records that have the label
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-