Class JsonLfEncoders


  • public class JsonLfEncoders
    extends java.lang.Object
    • Constructor Detail

      • JsonLfEncoders

        public JsonLfEncoders()
    • Method Detail

      • 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)
      • 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)
      • apply

        public static <I,​O> O apply​(java.util.function.Function<I,​O> f,
                                          I x)