Class JsArraySupplier

  • All Implemented Interfaces:
    java.util.function.Supplier<JsArray>

    public class JsArraySupplier
    extends java.lang.Object
    implements java.util.function.Supplier<JsArray>
    Represents a Json array of suppliers that combines every supplier and produces as a result a Json array
    • Method Detail

      • get

        public JsArray get()
        Specified by:
        get in interface java.util.function.Supplier<JsArray>
      • tuple

        @SafeVarargs
        public static JsArraySupplier tuple​(java.util.function.Supplier<? extends JsValue> head,
                                            java.util.function.Supplier<? extends JsValue>... tail)
        returns a JsArraySupplier from the given head and the tail
        Parameters:
        head - the head
        tail - the tail
        Returns:
        a new JsArraySupplier
      • empty

        public static JsArraySupplier empty()
        returns a JsArraySupplier that returns an empty Json array
        Returns:
        a JsArraySupplier