Uses of Interface
jsonvalues.JsArray
-
-
Uses of JsArray in jsonvalues
Methods in jsonvalues that return JsArray Modifier and Type Method Description static JsArrayJsArray. _empty_()Returns a mutable empty array.static JsArrayJsArray. _of_(boolean bool, boolean... others)Returns a mutable array from one or more booleans.static JsArrayJsArray. _of_(double number, double... others)Returns a mutable array from one or more doubles.static JsArrayJsArray. _of_(int number, int... others)Returns a mutable array from one or more integersstatic JsArrayJsArray. _of_(long number, long... others)Returns a mutable array from one or more longs.static JsArrayJsArray. _of_(String str, String... others)Returns a mutable array from one or more strings.static JsArrayJsArray. _of_(List<JsElem> list)Returns a mutable array copying the reference of the collection of elements.static JsArrayJsArray. _of_(JsElem e)Returns a mutable one-element array.static JsArrayJsArray. _of_(JsElem e, JsElem e1)Returns a mutable two-element array.static JsArrayJsArray. _of_(JsElem e, JsElem e1, JsElem e2)Returns a mutable three-element array.static JsArrayJsArray. _of_(JsElem e, JsElem e1, JsElem e2, JsElem e3)Returns a mutable four-element array.static JsArrayJsArray. _of_(JsElem e, JsElem e1, JsElem e2, JsElem e3, JsElem e4)Returns a mutable five-element array.static JsArrayJsArray. _of_(JsElem e, JsElem e1, JsElem e2, JsElem e3, JsElem e4, JsElem... rest)Returns a mutable array containing an arbitrary number of elements.static JsArrayJsArray. _of_(JsPair pair, JsPair... others)Returns a mutable array from one or more pairs.JsArrayJsArray. append(JsElem elem, JsElem... others)Adds one or more elements, starting from the first, to the back of this array.JsArrayJsArray. appendAll(JsArray array)Adds all the elements of the given array, starting from the head, to the back of this array.JsArrayTry. arrOrElse(Supplier<JsArray> other)Returns the computed JsArray if the parsed string is a well-formed json array, returning the JsArray given by the supplier otherwise.JsArrayTry. arrOrElseThrow()Returns the computed JsArray if the parsed string is a well-formed json array, throwing a MalformedJson exception otherwise.default JsArrayJsElem. asJsArray()static JsArrayJsArray. empty()Returns the immutable empty array.JsArrayJsArray. init()Returns all the elements of this array except the last one.JsArrayJsArray. intersection(JsArray that, JsArray.TYPE ARRAY_AS)Returns the intersection of this array and another given as a parameter, defining characteristics like order and duplicates occurrence with the given ARRAY_AS parameter.JsArrayJsArray. intersection_(JsArray that)Returns the intersection of this array and another given as parameter considering bothJsArray.TYPE.LISTlists and applying recursively the intersection to those elements which are Json of the same type and are located at the same position.static JsArrayJsArray. of(boolean bool, boolean... others)Returns an immutable array from one or more booleans.static JsArrayJsArray. of(double number, double... others)Returns an immutable array from one or more doubles.static JsArrayJsArray. of(int number, int... others)Returns an immutable array from one or more integers.static JsArrayJsArray. of(long number, long... others)Returns an immutable array from one or more longs.static JsArrayJsArray. of(String str, String... others)Returns an immutable array from one or more strings.static JsArrayJsArray. of(Collection<? extends JsElem> list)Returns an immutable array from the collection of elements.static JsArrayJsArray. of(JsElem e)Returns an immutable one-element array.static JsArrayJsArray. of(JsElem e, JsElem e1)Returns an immutable two-element array.static JsArrayJsArray. of(JsElem e, JsElem e1, JsElem e2)Returns an immutable three-element array.static JsArrayJsArray. of(JsElem e, JsElem e1, JsElem e2, JsElem e3)Returns an immutable four-element array.static JsArrayJsArray. of(JsElem e, JsElem e1, JsElem e2, JsElem e3, JsElem e4)Returns an immutable five-element array.static JsArrayJsArray. of(JsElem e, JsElem e1, JsElem e2, JsElem e3, JsElem e4, JsElem... rest)Returns an immutable array.static JsArrayJsArray. of(JsPair pair, JsPair... others)Returns an immutable array from one or more pairs.JsArrayTryArr. orElse(Supplier<JsArray> other)Returns the computed JsArray if the parsed string is a well-formed json array, returning the JsArray given by the supplier otherwise.JsArrayTryArr. orElseThrow()Returns the computed JsArray if the parsed string is a well-formed json array, throwing a MalformedJson otherwise.JsArrayJsArray. prepend(JsElem elem, JsElem... others)Adds one or more elements, starting from the last, to the front of this array.JsArrayJsArray. prependAll(JsArray array)Adds all the elements of the array, starting from the last, to the front of this array.JsArrayJsArray. tail()Returns a json array consisting of all elements of this array except the first one.JsArrayJsArray. union(JsArray that, JsArray.TYPE ARRAY_AS)Returns the union of this array and another, defining characteristics like order and duplicates occurrence with the given ARRAY_AS parameter.JsArrayJsArray. union_(JsArray that)Returns the union of this array and another given as parameter considering bothJsArray.TYPE.LISTlists and applying recursively the union to those elements which are Json of the same type and are located at the same position.Methods in jsonvalues that return types with arguments of type JsArray Modifier and Type Method Description static Collector<JsPair,JsArray,JsArray>JsArray. _collector_()Returns a collector that accumulates the pairs from a stream into a mutable array.static Collector<JsPair,JsArray,JsArray>JsArray. _collector_()Returns a collector that accumulates the pairs from a stream into a mutable array.static Collector<JsPair,JsArray,JsArray>JsArray. collector()Returns a collector that accumulates the pairs from a stream into an immutable array.static Collector<JsPair,JsArray,JsArray>JsArray. collector()Returns a collector that accumulates the pairs from a stream into an immutable array.default Optional<JsArray>Json. getArray(String path)Returns the array located at the given path as a big decimal orOptional.empty()if it doesn't exist or it's not an array.default Optional<JsArray>Json. getArray(JsPath path)Returns the array located at the given path orOptional.empty()if it doesn't exist or it's not an array.Optional<JsArray>TryArr. toOptional()Returns the computed JsArray wrapped in an optional if the parsed string is a well-formed json array, returning an empty optional otherwise.Methods in jsonvalues with parameters of type JsArray Modifier and Type Method Description JsArrayJsArray. appendAll(JsArray array)Adds all the elements of the given array, starting from the head, to the back of this array.default TJson. appendAll(String path, JsArray elems)Appends all the elements of the array, starting from the head, to the array located at the given path in this json.TJson. appendAll(JsPath path, JsArray elems)Appends all the elements of the array, starting from the head, to the array located at the given path in this json.default booleanJsArray. equals(JsArray array, JsArray.TYPE ARRAY_AS)Returns true if this array is equal to the given as a parameter.JsArrayJsArray. intersection(JsArray that, JsArray.TYPE ARRAY_AS)Returns the intersection of this array and another given as a parameter, defining characteristics like order and duplicates occurrence with the given ARRAY_AS parameter.JsArrayJsArray. intersection_(JsArray that)Returns the intersection of this array and another given as parameter considering bothJsArray.TYPE.LISTlists and applying recursively the intersection to those elements which are Json of the same type and are located at the same position.JsArrayJsArray. prependAll(JsArray array)Adds all the elements of the array, starting from the last, to the front of this array.default TJson. prependAll(String path, JsArray elems)prepends all the elements of the array, starting from the head, to the array located at the path in this json.TJson. prependAll(JsPath path, JsArray elems)prepends all the elements of the array, starting from the head, to the array located at the path in this json.JsArrayJsArray. union(JsArray that, JsArray.TYPE ARRAY_AS)Returns the union of this array and another, defining characteristics like order and duplicates occurrence with the given ARRAY_AS parameter.JsArrayJsArray. union_(JsArray that)Returns the union of this array and another given as parameter considering bothJsArray.TYPE.LISTlists and applying recursively the union to those elements which are Json of the same type and are located at the same position.Method parameters in jsonvalues with type arguments of type JsArray Modifier and Type Method Description default TJson. appendAllIfPresent(String path, Supplier<JsArray> supplier)Appends all the elements of the array computed by the supplier, starting from the head, to an array located at the path in this json, returning the same this instance if the array is not present, in which case, the supplier is not invoked.default TJson. appendAllIfPresent(JsPath path, Supplier<JsArray> supplier)Appends all the elements of the array computed by the supplier, starting from the head, to an array located at the given path in this json, returning the same this instance if the array is not present, in which case, the supplier is not invoked.JsArrayTry. arrOrElse(Supplier<JsArray> other)Returns the computed JsArray if the parsed string is a well-formed json array, returning the JsArray given by the supplier otherwise.static <T> Function<JsElem,T>MatchExp. ifArrElse(Function<? super JsArray,T> ifArr, Function<? super JsElem,T> ifNotArr)return a matching expression to extract arrays out of json elements.default <T> Trampoline<T>JsArray. ifEmptyElse(Trampoline<T> empty, BiFunction<JsElem,JsArray,Trampoline<T>> fn)default booleanJsElem. isArray(Predicate<JsArray> predicate)Returns true if this elem is a JsArray and satisfies the given predicateJsArrayTryArr. orElse(Supplier<JsArray> other)Returns the computed JsArray if the parsed string is a well-formed json array, returning the JsArray given by the supplier otherwise.default TJson. prependAllIfPresent(String path, Supplier<JsArray> supplier)Prepends all the elements of the array computed by the supplier, starting from the head, to the array located at the path in this json, returning the same this instance if the array is not present, in which case, the supplier is not invoked.default TJson. prependAllIfPresent(JsPath path, Supplier<JsArray> supplier)Prepends all the elements of the array computed by the supplier, starting from the head, to the array located at the path in this json, returning the same this instance if the array is not present, in which case, the supplier is not invoked.
-