Package com.daml.ledger.javaapi.data
Class Value
- java.lang.Object
-
- com.daml.ledger.javaapi.data.Value
-
- Direct Known Subclasses:
Bool
,ContractId
,DamlEnum
,DamlGenMap
,DamlList
,DamlOptional
,DamlRecord
,DamlTextMap
,Date
,Int64
,Numeric
,Party
,Text
,Timestamp
,Unit
,Variant
public abstract class Value extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Value()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Optional<Bool>
asBool()
java.util.Optional<ContractId>
asContractId()
java.util.Optional<Date>
asDate()
java.util.Optional<Decimal>
asDecimal()
Deprecated.java.util.Optional<DamlEnum>
asEnum()
java.util.Optional<DamlGenMap>
asGenMap()
java.util.Optional<Int64>
asInt64()
java.util.Optional<DamlList>
asList()
java.util.Optional<DamlTextMap>
asMap()
Deprecated.java.util.Optional<Numeric>
asNumeric()
java.util.Optional<DamlOptional>
asOptional()
java.util.Optional<Party>
asParty()
java.util.Optional<DamlRecord>
asRecord()
java.util.Optional<Text>
asText()
java.util.Optional<DamlTextMap>
asTextMap()
java.util.Optional<Timestamp>
asTimestamp()
java.util.Optional<Unit>
asUnit()
java.util.Optional<Variant>
asVariant()
static Value
fromProto(com.daml.ledger.api.v1.ValueOuterClass.Value value)
abstract com.daml.ledger.api.v1.ValueOuterClass.Value
toProto()
-
-
-
Method Detail
-
fromProto
public static Value fromProto(com.daml.ledger.api.v1.ValueOuterClass.Value value)
-
asBool
public final java.util.Optional<Bool> asBool()
-
asRecord
public final java.util.Optional<DamlRecord> asRecord()
-
asVariant
public final java.util.Optional<Variant> asVariant()
-
asEnum
public final java.util.Optional<DamlEnum> asEnum()
-
asContractId
public final java.util.Optional<ContractId> asContractId()
-
asList
public final java.util.Optional<DamlList> asList()
-
asInt64
public final java.util.Optional<Int64> asInt64()
-
asDecimal
@Deprecated public final java.util.Optional<Decimal> asDecimal()
Deprecated.
-
asNumeric
public final java.util.Optional<Numeric> asNumeric()
-
asText
public final java.util.Optional<Text> asText()
-
asTimestamp
public final java.util.Optional<Timestamp> asTimestamp()
-
asParty
public final java.util.Optional<Party> asParty()
-
asUnit
public final java.util.Optional<Unit> asUnit()
-
asDate
public final java.util.Optional<Date> asDate()
-
asOptional
public final java.util.Optional<DamlOptional> asOptional()
-
asTextMap
public final java.util.Optional<DamlTextMap> asTextMap()
-
asMap
@Deprecated public final java.util.Optional<DamlTextMap> asMap()
Deprecated.UseasTextMap()
-
asGenMap
public final java.util.Optional<DamlGenMap> asGenMap()
-
toProto
public abstract com.daml.ledger.api.v1.ValueOuterClass.Value toProto()
-
-