Class JsonLfDecoders
- java.lang.Object
-
- com.daml.ledger.javaapi.data.codegen.json.JsonLfDecoders
-
public class JsonLfDecoders extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJsonLfDecoders.JavaArg<T>
-
Field Summary
Fields Modifier and Type Field Description static JsonLfDecoder<java.lang.Boolean>boolstatic JsonLfDecoder<java.time.LocalDate>datestatic JsonLfDecoder<java.lang.Long>int64static JsonLfDecoder<java.lang.String>partystatic JsonLfDecoder<java.lang.String>textstatic JsonLfDecoder<java.time.Instant>timestampstatic JsonLfDecoder<Unit>unit
-
Constructor Summary
Constructors Constructor Description JsonLfDecoders()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Tcast(java.lang.Object o)static <C extends ContractId<?>>
JsonLfDecoder<C>contractId(java.util.function.Function<java.lang.String,C> constr)static <E extends java.lang.Enum<E>>
JsonLfDecoder<E>enumeration(java.util.Map<java.lang.String,E> damlNameToEnum)static <K,V>
JsonLfDecoder<java.util.Map<K,V>>genMap(JsonLfDecoder<K> decodeKey, JsonLfDecoder<V> decodeVal)static <T> JsonLfDecoder<java.util.List<T>>list(JsonLfDecoder<T> decodeItem)static JsonLfDecoder<java.math.BigDecimal>numeric(int scale)static <T> JsonLfDecoder<java.util.Optional<T>>optional(JsonLfDecoder<T> decodeVal)static <T> JsonLfDecoder<java.util.Optional<java.util.Optional<T>>>optionalNested(JsonLfDecoder<java.util.Optional<T>> decodeVal)static <T> JsonLfDecoder<T>record(java.util.List<java.lang.String> argNames, java.util.function.Function<java.lang.String,JsonLfDecoders.JavaArg<? extends java.lang.Object>> argsByName, java.util.function.Function<java.lang.Object[],T> constr)static <V> JsonLfDecoder<java.util.Map<java.lang.String,V>>textMap(JsonLfDecoder<V> decodeValue)static <T> JsonLfDecoder<T>variant(java.util.List<java.lang.String> tagNames, java.util.function.Function<java.lang.String,JsonLfDecoder<? extends T>> decoderByName)
-
-
-
Field Detail
-
unit
public static final JsonLfDecoder<Unit> unit
-
bool
public static final JsonLfDecoder<java.lang.Boolean> bool
-
int64
public static final JsonLfDecoder<java.lang.Long> int64
-
timestamp
public static final JsonLfDecoder<java.time.Instant> timestamp
-
date
public static final JsonLfDecoder<java.time.LocalDate> date
-
text
public static final JsonLfDecoder<java.lang.String> text
-
party
public static final JsonLfDecoder<java.lang.String> party
-
-
Method Detail
-
numeric
public static JsonLfDecoder<java.math.BigDecimal> numeric(int scale)
-
contractId
public static <C extends ContractId<?>> JsonLfDecoder<C> contractId(java.util.function.Function<java.lang.String,C> constr)
-
list
public static <T> JsonLfDecoder<java.util.List<T>> list(JsonLfDecoder<T> decodeItem)
-
textMap
public static <V> JsonLfDecoder<java.util.Map<java.lang.String,V>> textMap(JsonLfDecoder<V> decodeValue)
-
genMap
public static <K,V> JsonLfDecoder<java.util.Map<K,V>> genMap(JsonLfDecoder<K> decodeKey, JsonLfDecoder<V> decodeVal)
-
optional
public static <T> JsonLfDecoder<java.util.Optional<T>> optional(JsonLfDecoder<T> decodeVal)
-
optionalNested
public static <T> JsonLfDecoder<java.util.Optional<java.util.Optional<T>>> optionalNested(JsonLfDecoder<java.util.Optional<T>> decodeVal)
-
enumeration
public static <E extends java.lang.Enum<E>> JsonLfDecoder<E> enumeration(java.util.Map<java.lang.String,E> damlNameToEnum)
-
variant
public static <T> JsonLfDecoder<T> variant(java.util.List<java.lang.String> tagNames, java.util.function.Function<java.lang.String,JsonLfDecoder<? extends T>> decoderByName)
-
record
public static <T> JsonLfDecoder<T> record(java.util.List<java.lang.String> argNames, java.util.function.Function<java.lang.String,JsonLfDecoders.JavaArg<? extends java.lang.Object>> argsByName, java.util.function.Function<java.lang.Object[],T> constr)
-
cast
public static <T> T cast(java.lang.Object o)
-
-