Class JsObjSupplier

  • All Implemented Interfaces:
    Supplier<JsObj>

    public class JsObjSupplier
    extends Object
    implements Supplier<JsObj>
    Represents a Json object of suppliers that combines every supplier and produces as a result a Json object
    • Method Detail

      • of

        public static JsObjSupplier of​(String key,
                                       Supplier<? extends JsValue> supplier)
        static factory method to create a JsObjSupplier of one mapping
        Parameters:
        key - the key
        supplier - the mapping associated to the key
        Returns:
        a JsObjSupplier
      • of

        public static JsObjSupplier of​(String key1,
                                       Supplier<? extends JsValue> supplier1,
                                       String key2,
                                       Supplier<? extends JsValue> supplier2)
        static factory method to create a JsObjSupplier of one mapping
        Parameters:
        key1 - the first key
        supplier1 - the mapping associated to the first key
        key2 - the second key
        supplier2 - the mapping associated to the second key
        Returns:
        a JsObjSupplier
      • of

        public static JsObjSupplier of​(String key1,
                                       Supplier<? extends JsValue> supplier1,
                                       String key2,
                                       Supplier<? extends JsValue> supplier2,
                                       String key3,
                                       Supplier<? extends JsValue> supplier3)
        static factory method to create a JsObjSupplier of three mappings
        Parameters:
        key1 - the first key
        supplier1 - the mapping associated to the first key
        key2 - the second key
        supplier2 - the mapping associated to the second key
        key3 - the third key
        supplier3 - the mapping associated to the third key
        Returns:
        a JsObjSupplier
      • of

        public static JsObjSupplier of​(String key1,
                                       Supplier<? extends JsValue> supplier1,
                                       String key2,
                                       Supplier<? extends JsValue> supplier2,
                                       String key3,
                                       Supplier<? extends JsValue> supplier3,
                                       String key4,
                                       Supplier<? extends JsValue> supplier4)
        static factory method to create a JsObjSupplier of four mappings
        Parameters:
        key1 - the first key
        supplier1 - the mapping associated to the first key
        key2 - the second key
        supplier2 - the mapping associated to the second key
        key3 - the third key
        supplier3 - the mapping associated to the third key
        key4 - the fourth key
        supplier4 - the mapping associated to the fourth key
        Returns:
        a JsObjSupplier
      • of

        public static JsObjSupplier of​(String key1,
                                       Supplier<? extends JsValue> supplier1,
                                       String key2,
                                       Supplier<? extends JsValue> supplier2,
                                       String key3,
                                       Supplier<? extends JsValue> supplier3,
                                       String key4,
                                       Supplier<? extends JsValue> supplier4,
                                       String key5,
                                       Supplier<? extends JsValue> supplier5)
        static factory method to create a JsObjSupplier of five mappings
        Parameters:
        key1 - the first key
        supplier1 - the mapping associated to the first key
        key2 - the second key
        supplier2 - the mapping associated to the second key
        key3 - the third key
        supplier3 - the mapping associated to the third key
        key4 - the fourth key
        supplier4 - the mapping associated to the fourth key
        key5 - the fifth key
        supplier5 - the mapping associated to the fifth key
        Returns:
        a JsObjSupplier
      • of

        public static JsObjSupplier of​(String key1,
                                       Supplier<? extends JsValue> supplier1,
                                       String key2,
                                       Supplier<? extends JsValue> supplier2,
                                       String key3,
                                       Supplier<? extends JsValue> supplier3,
                                       String key4,
                                       Supplier<? extends JsValue> supplier4,
                                       String key5,
                                       Supplier<? extends JsValue> supplier5,
                                       String key6,
                                       Supplier<? extends JsValue> supplier6)
        static factory method to create a JsObjSupplier of six mappings
        Parameters:
        key1 - the first key
        supplier1 - the mapping associated to the first key
        key2 - the second key
        supplier2 - the mapping associated to the second key
        key3 - the third key
        supplier3 - the mapping associated to the third key
        key4 - the fourth key
        supplier4 - the mapping associated to the fourth key
        key5 - the fifth key
        supplier5 - the mapping associated to the fifth key
        key6 - the sixth key
        supplier6 - the mapping associated to the sixth key
        Returns:
        a JsObjSupplier
      • of

        public static JsObjSupplier of​(String key1,
                                       Supplier<? extends JsValue> supplier1,
                                       String key2,
                                       Supplier<? extends JsValue> supplier2,
                                       String key3,
                                       Supplier<? extends JsValue> supplier3,
                                       String key4,
                                       Supplier<? extends JsValue> supplier4,
                                       String key5,
                                       Supplier<? extends JsValue> supplier5,
                                       String key6,
                                       Supplier<? extends JsValue> supplier6,
                                       String key7,
                                       Supplier<? extends JsValue> supplier7)
        static factory method to create a JsObjSupplier of seven mappings
        Parameters:
        key1 - the first key
        supplier1 - the mapping associated to the first key
        key2 - the second key
        supplier2 - the mapping associated to the second key
        key3 - the third key
        supplier3 - the mapping associated to the third key
        key4 - the fourth key
        supplier4 - the mapping associated to the fourth key
        key5 - the fifth key
        supplier5 - the mapping associated to the fifth key
        key6 - the sixth key
        supplier6 - the mapping associated to the sixth key
        key7 - the seventh key
        supplier7 - the mapping associated to the seventh key
        Returns:
        a JsObjSupplier
      • of

        public static JsObjSupplier of​(String key1,
                                       Supplier<? extends JsValue> supplier1,
                                       String key2,
                                       Supplier<? extends JsValue> supplier2,
                                       String key3,
                                       Supplier<? extends JsValue> supplier3,
                                       String key4,
                                       Supplier<? extends JsValue> supplier4,
                                       String key5,
                                       Supplier<? extends JsValue> supplier5,
                                       String key6,
                                       Supplier<? extends JsValue> supplier6,
                                       String key7,
                                       Supplier<? extends JsValue> supplier7,
                                       String key8,
                                       Supplier<? extends JsValue> supplier8)
        static factory method to create a JsObjSupplier of eight mappings
        Parameters:
        key1 - the first key
        supplier1 - the mapping associated to the first key
        key2 - the second key
        supplier2 - the mapping associated to the second key
        key3 - the third key
        supplier3 - the mapping associated to the third key
        key4 - the fourth key
        supplier4 - the mapping associated to the fourth key
        key5 - the fifth key
        supplier5 - the mapping associated to the fifth key
        key6 - the sixth key
        supplier6 - the mapping associated to the sixth key
        key7 - the seventh key
        supplier7 - the mapping associated to the seventh key
        key8 - the eighth key
        supplier8 - the mapping associated to the eighth key
        Returns:
        a JsObjSupplier
      • of

        public static JsObjSupplier of​(String key1,
                                       Supplier<? extends JsValue> supplier1,
                                       String key2,
                                       Supplier<? extends JsValue> supplier2,
                                       String key3,
                                       Supplier<? extends JsValue> supplier3,
                                       String key4,
                                       Supplier<? extends JsValue> supplier4,
                                       String key5,
                                       Supplier<? extends JsValue> supplier5,
                                       String key6,
                                       Supplier<? extends JsValue> supplier6,
                                       String key7,
                                       Supplier<? extends JsValue> supplier7,
                                       String key8,
                                       Supplier<? extends JsValue> supplier8,
                                       String key9,
                                       Supplier<? extends JsValue> supplier9)
        static factory method to create a JsObjSupplier of nine mappings
        Parameters:
        key1 - the first key
        supplier1 - the mapping associated to the first key
        key2 - the second key
        supplier2 - the mapping associated to the second key
        key3 - the third key
        supplier3 - the mapping associated to the third key
        key4 - the fourth key
        supplier4 - the mapping associated to the fourth key
        key5 - the fifth key
        supplier5 - the mapping associated to the fifth key
        key6 - the sixth key
        supplier6 - the mapping associated to the sixth key
        key7 - the seventh key
        supplier7 - the mapping associated to the seventh key
        key8 - the eighth key
        supplier8 - the mapping associated to the eighth key
        key9 - the ninth key
        supplier9 - the mapping associated to the ninth key
        Returns:
        a JsObjSupplier
      • of

        public static JsObjSupplier of​(String key1,
                                       Supplier<? extends JsValue> supplier1,
                                       String key2,
                                       Supplier<? extends JsValue> supplier2,
                                       String key3,
                                       Supplier<? extends JsValue> supplier3,
                                       String key4,
                                       Supplier<? extends JsValue> supplier4,
                                       String key5,
                                       Supplier<? extends JsValue> supplier5,
                                       String key6,
                                       Supplier<? extends JsValue> supplier6,
                                       String key7,
                                       Supplier<? extends JsValue> supplier7,
                                       String key8,
                                       Supplier<? extends JsValue> supplier8,
                                       String key9,
                                       Supplier<? extends JsValue> supplier9,
                                       String key10,
                                       Supplier<? extends JsValue> supplier10)
        static factory method to create a JsObjSupplier of ten mappings
        Parameters:
        key1 - the first key
        supplier1 - the mapping associated to the first key
        key2 - the second key
        supplier2 - the mapping associated to the second key
        key3 - the third key
        supplier3 - the mapping associated to the third key
        key4 - the fourth key
        supplier4 - the mapping associated to the fourth key
        key5 - the fifth key
        supplier5 - the mapping associated to the fifth key
        key6 - the sixth key
        supplier6 - the mapping associated to the sixth key
        key7 - the seventh key
        supplier7 - the mapping associated to the seventh key
        key8 - the eighth key
        supplier8 - the mapping associated to the eighth key
        key9 - the ninth key
        supplier9 - the mapping associated to the ninth key
        key10 - the tenth key
        supplier10 - the mapping associated to the tenth key
        Returns:
        a JsObjSupplier
      • of

        public static JsObjSupplier of​(String key1,
                                       Supplier<? extends JsValue> supplier1,
                                       String key2,
                                       Supplier<? extends JsValue> supplier2,
                                       String key3,
                                       Supplier<? extends JsValue> supplier3,
                                       String key4,
                                       Supplier<? extends JsValue> supplier4,
                                       String key5,
                                       Supplier<? extends JsValue> supplier5,
                                       String key6,
                                       Supplier<? extends JsValue> supplier6,
                                       String key7,
                                       Supplier<? extends JsValue> supplier7,
                                       String key8,
                                       Supplier<? extends JsValue> supplier8,
                                       String key9,
                                       Supplier<? extends JsValue> supplier9,
                                       String key10,
                                       Supplier<? extends JsValue> supplier10,
                                       String key11,
                                       Supplier<? extends JsValue> supplier11)
        static factory method to create a JsObjSupplier of eleven mappings
        Parameters:
        key1 - the first key
        supplier1 - the mapping associated to the first key
        key2 - the second key
        supplier2 - the mapping associated to the second key
        key3 - the third key
        supplier3 - the mapping associated to the third key
        key4 - the fourth key
        supplier4 - the mapping associated to the fourth key
        key5 - the fifth key
        supplier5 - the mapping associated to the fifth key
        key6 - the sixth key
        supplier6 - the mapping associated to the sixth key
        key7 - the seventh key
        supplier7 - the mapping associated to the seventh key
        key8 - the eighth key
        supplier8 - the mapping associated to the eighth key
        key9 - the ninth key
        supplier9 - the mapping associated to the ninth key
        key10 - the tenth key
        supplier10 - the mapping associated to the eleventh key
        key11 - the tenth key
        supplier11 - the mapping associated to the eleventh key
        Returns:
        a JsObjSupplier
      • of

        public static JsObjSupplier of​(String key1,
                                       Supplier<? extends JsValue> supplier1,
                                       String key2,
                                       Supplier<? extends JsValue> supplier2,
                                       String key3,
                                       Supplier<? extends JsValue> supplier3,
                                       String key4,
                                       Supplier<? extends JsValue> supplier4,
                                       String key5,
                                       Supplier<? extends JsValue> supplier5,
                                       String key6,
                                       Supplier<? extends JsValue> supplier6,
                                       String key7,
                                       Supplier<? extends JsValue> supplier7,
                                       String key8,
                                       Supplier<? extends JsValue> supplier8,
                                       String key9,
                                       Supplier<? extends JsValue> supplier9,
                                       String key10,
                                       Supplier<? extends JsValue> supplier10,
                                       String key11,
                                       Supplier<? extends JsValue> supplier11,
                                       String key12,
                                       Supplier<? extends JsValue> supplier12)
        static factory method to create a JsObjSupplier of twelve mappings
        Parameters:
        key1 - the first key
        supplier1 - the mapping associated to the first key
        key2 - the second key
        supplier2 - the mapping associated to the second key
        key3 - the third key
        supplier3 - the mapping associated to the third key
        key4 - the fourth key
        supplier4 - the mapping associated to the fourth key
        key5 - the fifth key
        supplier5 - the mapping associated to the fifth key
        key6 - the sixth key
        supplier6 - the mapping associated to the sixth key
        key7 - the seventh key
        supplier7 - the mapping associated to the seventh key
        key8 - the eighth key
        supplier8 - the mapping associated to the eighth key
        key9 - the ninth key
        supplier9 - the mapping associated to the ninth key
        key10 - the tenth key
        supplier10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        supplier11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        supplier12 - the mapping associated to the twelfth key
        Returns:
        a JsObjSupplier
      • of

        public static JsObjSupplier of​(String key1,
                                       Supplier<? extends JsValue> supplier1,
                                       String key2,
                                       Supplier<? extends JsValue> supplier2,
                                       String key3,
                                       Supplier<? extends JsValue> supplier3,
                                       String key4,
                                       Supplier<? extends JsValue> supplier4,
                                       String key5,
                                       Supplier<? extends JsValue> supplier5,
                                       String key6,
                                       Supplier<? extends JsValue> supplier6,
                                       String key7,
                                       Supplier<? extends JsValue> supplier7,
                                       String key8,
                                       Supplier<? extends JsValue> supplier8,
                                       String key9,
                                       Supplier<? extends JsValue> supplier9,
                                       String key10,
                                       Supplier<? extends JsValue> supplier10,
                                       String key11,
                                       Supplier<? extends JsValue> supplier11,
                                       String key12,
                                       Supplier<? extends JsValue> supplier12,
                                       String key13,
                                       Supplier<? extends JsValue> supplier13)
        static factory method to create a JsObjSupplier of thirteen mappings
        Parameters:
        key1 - the first key
        supplier1 - the mapping associated to the first key
        key2 - the second key
        supplier2 - the mapping associated to the second key
        key3 - the third key
        supplier3 - the mapping associated to the third key
        key4 - the fourth key
        supplier4 - the mapping associated to the fourth key
        key5 - the fifth key
        supplier5 - the mapping associated to the fifth key
        key6 - the sixth key
        supplier6 - the mapping associated to the sixth key
        key7 - the seventh key
        supplier7 - the mapping associated to the seventh key
        key8 - the eighth key
        supplier8 - the mapping associated to the eighth key
        key9 - the ninth key
        supplier9 - the mapping associated to the ninth key
        key10 - the tenth key
        supplier10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        supplier11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        supplier12 - the mapping associated to the twelfth key,
        key13 - the thirteenth key
        supplier13 - the mapping associated to the thirteenth key
        Returns:
        a JsObjSupplier
      • of

        public static JsObjSupplier of​(String key1,
                                       Supplier<? extends JsValue> supplier1,
                                       String key2,
                                       Supplier<? extends JsValue> supplier2,
                                       String key3,
                                       Supplier<? extends JsValue> supplier3,
                                       String key4,
                                       Supplier<? extends JsValue> supplier4,
                                       String key5,
                                       Supplier<? extends JsValue> supplier5,
                                       String key6,
                                       Supplier<? extends JsValue> supplier6,
                                       String key7,
                                       Supplier<? extends JsValue> supplier7,
                                       String key8,
                                       Supplier<? extends JsValue> supplier8,
                                       String key9,
                                       Supplier<? extends JsValue> supplier9,
                                       String key10,
                                       Supplier<? extends JsValue> supplier10,
                                       String key11,
                                       Supplier<? extends JsValue> supplier11,
                                       String key12,
                                       Supplier<? extends JsValue> supplier12,
                                       String key13,
                                       Supplier<? extends JsValue> supplier13,
                                       String key14,
                                       Supplier<? extends JsValue> supplier14)
        static factory method to create a JsObjSupplier of fourteen mappings
        Parameters:
        key1 - the first key
        supplier1 - the mapping associated to the first key
        key2 - the second key
        supplier2 - the mapping associated to the second key
        key3 - the third key
        supplier3 - the mapping associated to the third key
        key4 - the fourth key
        supplier4 - the mapping associated to the fourth key
        key5 - the fifth key
        supplier5 - the mapping associated to the fifth key
        key6 - the sixth key
        supplier6 - the mapping associated to the sixth key
        key7 - the seventh key
        supplier7 - the mapping associated to the seventh key
        key8 - the eighth key
        supplier8 - the mapping associated to the eighth key
        key9 - the ninth key
        supplier9 - the mapping associated to the ninth key
        key10 - the tenth key
        supplier10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        supplier11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        supplier12 - the mapping associated to the twelfth key,
        key13 - the thirteenth key
        supplier13 - the mapping associated to the thirteenth key
        key14 - the fourteenth key
        supplier14 - the mapping associated to the fourteenth key
        Returns:
        a JsObjSupplier
      • of

        public static JsObjSupplier of​(String key1,
                                       Supplier<? extends JsValue> supplier1,
                                       String key2,
                                       Supplier<? extends JsValue> supplier2,
                                       String key3,
                                       Supplier<? extends JsValue> supplier3,
                                       String key4,
                                       Supplier<? extends JsValue> supplier4,
                                       String key5,
                                       Supplier<? extends JsValue> supplier5,
                                       String key6,
                                       Supplier<? extends JsValue> supplier6,
                                       String key7,
                                       Supplier<? extends JsValue> supplier7,
                                       String key8,
                                       Supplier<? extends JsValue> supplier8,
                                       String key9,
                                       Supplier<? extends JsValue> supplier9,
                                       String key10,
                                       Supplier<? extends JsValue> supplier10,
                                       String key11,
                                       Supplier<? extends JsValue> supplier11,
                                       String key12,
                                       Supplier<? extends JsValue> supplier12,
                                       String key13,
                                       Supplier<? extends JsValue> supplier13,
                                       String key14,
                                       Supplier<? extends JsValue> supplier14,
                                       String key15,
                                       Supplier<? extends JsValue> supplier15)
        static factory method to create a JsObjSupplier of fifteen mappings
        Parameters:
        key1 - the first key
        supplier1 - the mapping associated to the first key
        key2 - the second key
        supplier2 - the mapping associated to the second key
        key3 - the third key
        supplier3 - the mapping associated to the third key
        key4 - the fourth key
        supplier4 - the mapping associated to the fourth key
        key5 - the fifth key
        supplier5 - the mapping associated to the fifth key
        key6 - the sixth key
        supplier6 - the mapping associated to the sixth key
        key7 - the seventh key
        supplier7 - the mapping associated to the seventh key
        key8 - the eighth key
        supplier8 - the mapping associated to the eighth key
        key9 - the ninth key
        supplier9 - the mapping associated to the ninth key
        key10 - the tenth key
        supplier10 - the mapping associated to the eleventh key
        key11 - the eleventh key
        supplier11 - the mapping associated to the eleventh key
        key12 - the twelfth key
        supplier12 - the mapping associated to the twelfth key,
        key13 - the thirteenth key
        supplier13 - the mapping associated to the thirteenth key
        key14 - the fourteenth key
        supplier14 - the mapping associated to the fourteenth key
        key15 - the fifteenth key
        supplier15 - the mapping associated to the fifteenth key
        Returns:
        a JsObjSupplier
      • empty

        public static JsObjSupplier empty()
        returns a JsObjSupplier that is completed returning the empty Json object
        Returns:
        a JsObjSupplier
      • set

        public JsObjSupplier set​(String key,
                                 Supplier<? extends JsValue> supplier)
        returns a new object supplier inserting the given supplier at the given key
        Parameters:
        key - the given key
        supplier - the given supplier
        Returns:
        a new JsObjSupplier