Uses of Class
at.syntaxerror.json5.JSONArray
-
-
Uses of JSONArray in at.syntaxerror.json5
Methods in at.syntaxerror.json5 that return JSONArray Modifier and Type Method Description JSONArrayJSONArray. add(Object value)Adds a value to the JSONArrayJSONArrayJSONArray. addAll(JSONArray arr)Adds the values of the given JSONArray to this JSONArray.JSONArrayJSONArray. addAllDeep(JSONArray arr)Adds the value of the given JSONArray to this JSONArray.JSONArrayJSONArray. copy()Creates a shallow copy of the JSONArrayJSONArrayJSONArray. deepCopy()Creates a deep copy of the JSONArrayJSONArrayJSONArray. deepSublist(int fromIndex, int toIndex)Creates a deep copy of part of the JSONArray.JSONArrayJSONArray. getArray(int index)Returns the value as a JSONArray for a given indexJSONArrayJSONArray. getArray(int index, JSONArray defaults)Returns the value as a JSONArray for a given index, or the default value if the operation is not possibleJSONArrayJSONObject. getArray(String key)Returns the value as a JSONArray for a given keyJSONArrayJSONObject. getArray(String key, JSONArray defaults)Returns the value as a JSONArray for a given key, or the default value if the operation is not possibleJSONArrayJSONArray. insert(int index, Object value)Inserts a value to the JSONArray at a given indexJSONArrayJSONArray. removeAll(JSONArray arr)Removes all entries from the JSONArray where there is the same value in the other JSONArray.JSONArrayJSONArray. removeIf(BiPredicate<Integer,Object> predicate)Removes all entries from the JSONArray where the predicate returnstrue.JSONArrayJSONArray. retainAll(JSONArray arr)Removes all entries from the JSONArray where there is no such value in the other JSONArray.JSONArrayJSONArray. retainIf(BiPredicate<Integer,Object> predicate)Removes all entries from the JSONArray where the predicate returnsfalse.JSONArrayJSONArray. set(int index, Object value)Sets the value at a given indexJSONArrayJSONArray. sublist(int fromIndex, int toIndex)Creates a shallow copy of part of the JSONArray.Methods in at.syntaxerror.json5 with parameters of type JSONArray Modifier and Type Method Description JSONArrayJSONArray. addAll(JSONArray arr)Adds the values of the given JSONArray to this JSONArray.JSONArrayJSONArray. addAllDeep(JSONArray arr)Adds the value of the given JSONArray to this JSONArray.JSONArrayJSONArray. getArray(int index, JSONArray defaults)Returns the value as a JSONArray for a given index, or the default value if the operation is not possibleJSONArrayJSONObject. getArray(String key, JSONArray defaults)Returns the value as a JSONArray for a given key, or the default value if the operation is not possibleJSONArrayJSONArray. removeAll(JSONArray arr)Removes all entries from the JSONArray where there is the same value in the other JSONArray.JSONArrayJSONArray. retainAll(JSONArray arr)Removes all entries from the JSONArray where there is no such value in the other JSONArray.static StringJSONStringify. toString(JSONArray array, int indentFactor)Converts a JSONArray into its string representation.static StringJSONStringify. toString(JSONArray array, int indentFactor, JSONOptions options)Converts a JSONArray into its string representation.Method parameters in at.syntaxerror.json5 with type arguments of type JSONArray Modifier and Type Method Description JSONObjectJSONObject. computeArray(String key, BiFunction<String,JSONArray,Object> remappingFunction)Replaces or sets the value associated with the given key with the value returned by the remapping function.JSONObjectJSONObject. computeArrayIfPresent(String key, BiFunction<String,JSONArray,Object> remappingFunction)Replaces the value associated with the given key with the value returned by the remapping function.JSONObjectJSONObject. removeArrayIf(String key, Predicate<JSONArray> predicate)Removes a key from a JSONObject if the predicate returnstrue.JSONObjectJSONObject. retainArrayIf(String key, Predicate<JSONArray> predicate)Removes a key from a JSONObject if the predicate returnsfalse.
-