Class JsonLfDecoders
java.lang.Object
com.daml.ledger.javaapi.data.codegen.json.JsonLfDecoders
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonLfDecoder<Boolean>static final JsonLfDecoder<LocalDate>static final JsonLfDecoder<Long>static final JsonLfDecoder<String>static final JsonLfDecoder<String>static final JsonLfDecoder<Instant>static final JsonLfDecoder<Unit> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tstatic <C extends ContractId<?>>
JsonLfDecoder<C>contractId(Function<String, C> constr) static <E extends Enum<E>>
JsonLfDecoder<E>enumeration(Map<String, E> damlNameToEnum) static <K,V> JsonLfDecoder<Map<K, V>> genMap(JsonLfDecoder<K> decodeKey, JsonLfDecoder<V> decodeVal) static <T> JsonLfDecoder<List<T>>list(JsonLfDecoder<T> decodeItem) static JsonLfDecoder<BigDecimal>numeric(int scale) static <T> JsonLfDecoder<Optional<T>>optional(JsonLfDecoder<T> decodeVal) static <T> JsonLfDecoder<Optional<Optional<T>>>optionalNested(JsonLfDecoder<Optional<T>> decodeVal) static <T> JsonLfDecoder<T>record(List<String> argNames, Function<String, JsonLfDecoders.JavaArg<? extends Object>> argsByName, Function<Object[], T> constr) static <V> JsonLfDecoder<Map<String,V>> textMap(JsonLfDecoder<V> decodeValue) static <T> JsonLfDecoder<T>
-
Field Details
-
unit
-
bool
-
int64
-
timestamp
-
date
-
text
-
party
-
-
Constructor Details
-
JsonLfDecoders
public JsonLfDecoders()
-
-
Method Details
-
numeric
-
contractId
-
list
-
textMap
-
genMap
public static <K,V> JsonLfDecoder<Map<K,V>> genMap(JsonLfDecoder<K> decodeKey, JsonLfDecoder<V> decodeVal) -
optional
-
optionalNested
public static <T> JsonLfDecoder<Optional<Optional<T>>> optionalNested(JsonLfDecoder<Optional<T>> decodeVal) -
enumeration
-
variant
public static <T> JsonLfDecoder<T> variant(List<String> tagNames, Function<String, JsonLfDecoder<? extends T>> decoderByName) -
record
public static <T> JsonLfDecoder<T> record(List<String> argNames, Function<String, JsonLfDecoders.JavaArg<? extends Object>> argsByName, Function<Object[], T> constr) -
cast
-