Class JsonLfEncoders
- java.lang.Object
-
- com.daml.ledger.javaapi.data.codegen.json.JsonLfEncoders
-
public class JsonLfEncoders extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJsonLfEncoders.Field
-
Constructor Summary
Constructors Constructor Description JsonLfEncoders()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <I,O>
Oapply(java.util.function.Function<I,O> f, I x)static JsonLfEncoderbool(java.lang.Boolean value)static <Cid extends ContractId<?>>
JsonLfEncodercontractId(Cid value)static JsonLfEncoderdate(java.time.LocalDate d)static <E extends DamlEnum<E>>
java.util.function.Function<E,JsonLfEncoder>enumeration(java.util.function.Function<E,java.lang.String> toDamlName)static <K,V>
java.util.function.Function<java.util.Map<K,V>,JsonLfEncoder>genMap(java.util.function.Function<K,JsonLfEncoder> keyEncoder, java.util.function.Function<V,JsonLfEncoder> valueEncoder)static JsonLfEncoderint64(java.lang.Long value)static <T> java.util.function.Function<java.util.List<T>,JsonLfEncoder>list(java.util.function.Function<T,JsonLfEncoder> itemEncoder)static JsonLfEncodernumeric(java.math.BigDecimal value)static <T> java.util.function.Function<java.util.Optional<T>,JsonLfEncoder>optional(java.util.function.Function<T,JsonLfEncoder> valueEncoder)static <T> java.util.function.Function<java.util.Optional<java.util.Optional<T>>,JsonLfEncoder>optionalNested(java.util.function.Function<java.util.Optional<T>,JsonLfEncoder> valueEncoder)static JsonLfEncoderparty(java.lang.String value)static JsonLfEncoderrecord(JsonLfEncoders.Field... fields)static JsonLfEncodertext(java.lang.String value)static <T> java.util.function.Function<java.util.Map<java.lang.String,T>,JsonLfEncoder>textMap(java.util.function.Function<T,JsonLfEncoder> valueEncoder)static JsonLfEncodertimestamp(java.time.Instant t)static JsonLfEncoderunit(Unit _unit)static <T> java.util.function.Function<T,JsonLfEncoder>variant(java.util.function.Function<T,JsonLfEncoders.Field> getField)
-
-
-
Method Detail
-
unit
public static JsonLfEncoder unit(Unit _unit)
-
bool
public static JsonLfEncoder bool(java.lang.Boolean value)
-
int64
public static JsonLfEncoder int64(java.lang.Long value)
-
text
public static JsonLfEncoder text(java.lang.String value)
-
numeric
public static JsonLfEncoder numeric(java.math.BigDecimal value)
-
timestamp
public static JsonLfEncoder timestamp(java.time.Instant t)
-
date
public static JsonLfEncoder date(java.time.LocalDate d)
-
party
public static JsonLfEncoder party(java.lang.String value)
-
contractId
public static <Cid extends ContractId<?>> JsonLfEncoder contractId(Cid value)
-
enumeration
public static <E extends DamlEnum<E>> java.util.function.Function<E,JsonLfEncoder> enumeration(java.util.function.Function<E,java.lang.String> toDamlName)
-
list
public static <T> java.util.function.Function<java.util.List<T>,JsonLfEncoder> list(java.util.function.Function<T,JsonLfEncoder> itemEncoder)
-
textMap
public static <T> java.util.function.Function<java.util.Map<java.lang.String,T>,JsonLfEncoder> textMap(java.util.function.Function<T,JsonLfEncoder> valueEncoder)
-
genMap
public static <K,V> java.util.function.Function<java.util.Map<K,V>,JsonLfEncoder> genMap(java.util.function.Function<K,JsonLfEncoder> keyEncoder, java.util.function.Function<V,JsonLfEncoder> valueEncoder)
-
optional
public static <T> java.util.function.Function<java.util.Optional<T>,JsonLfEncoder> optional(java.util.function.Function<T,JsonLfEncoder> valueEncoder)
-
optionalNested
public static <T> java.util.function.Function<java.util.Optional<java.util.Optional<T>>,JsonLfEncoder> optionalNested(java.util.function.Function<java.util.Optional<T>,JsonLfEncoder> valueEncoder)
-
variant
public static <T> java.util.function.Function<T,JsonLfEncoder> variant(java.util.function.Function<T,JsonLfEncoders.Field> getField)
-
record
public static JsonLfEncoder record(JsonLfEncoders.Field... fields)
-
apply
public static <I,O> O apply(java.util.function.Function<I,O> f, I x)
-
-