JSONObject |
JSONObject.compute(String key,
BiFunction<String,Object,Object> remappingFunction) |
Replaces or sets the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.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.
|
JSONObject |
JSONObject.computeArrayIfPresent(String key,
BiFunction<String,JSONArray,Object> remappingFunction) |
Replaces the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeBoolean(String key,
BiFunction<String,Boolean,Object> remappingFunction) |
Replaces or sets the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeBooleanIfPresent(String key,
BiFunction<String,Boolean,Object> remappingFunction) |
Replaces the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeByte(String key,
BiFunction<String,Byte,Object> remappingFunction) |
Replaces or sets the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeByteExact(String key,
BiFunction<String,Byte,Object> remappingFunction) |
Replaces or sets the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeByteExactIfPresent(String key,
BiFunction<String,Byte,Object> remappingFunction) |
Replaces the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeByteIfPresent(String key,
BiFunction<String,Byte,Object> remappingFunction) |
Replaces the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeDouble(String key,
BiFunction<String,Double,Object> remappingFunction) |
Replaces or sets the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeDoubleExact(String key,
BiFunction<String,Double,Object> remappingFunction) |
Replaces or sets the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeDoubleExactIfPresent(String key,
BiFunction<String,Double,Object> remappingFunction) |
Replaces the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeDoubleIfPresent(String key,
BiFunction<String,Double,Object> remappingFunction) |
Replaces the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeFloat(String key,
BiFunction<String,Float,Object> remappingFunction) |
Replaces or sets the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeFloatExact(String key,
BiFunction<String,Float,Object> remappingFunction) |
Replaces or sets the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeFloatExactIfPresent(String key,
BiFunction<String,Float,Object> remappingFunction) |
Replaces the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeFloatIfPresent(String key,
BiFunction<String,Float,Object> remappingFunction) |
Replaces the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeIfAbsent(String key,
Function<String,Object> mappingFunction) |
Associates the value returned by the mapping function with the given key if the key is not already associated with a value.
|
JSONObject |
JSONObject.computeIfPresent(String key,
BiFunction<String,Object,Object> remappingFunction) |
Replaces the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeInstant(String key,
BiFunction<String,Instant,Object> remappingFunction) |
Replaces or sets the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeInstantIfPresent(String key,
BiFunction<String,Instant,Object> remappingFunction) |
Replaces the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeInt(String key,
BiFunction<String,Integer,Object> remappingFunction) |
Replaces or sets the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeIntExact(String key,
BiFunction<String,Integer,Object> remappingFunction) |
Replaces or sets the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeIntExactIfPresent(String key,
BiFunction<String,Integer,Object> remappingFunction) |
Replaces the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeIntIfPresent(String key,
BiFunction<String,Integer,Object> remappingFunction) |
Replaces the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeLong(String key,
BiFunction<String,Long,Object> remappingFunction) |
Replaces or sets the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeLongExact(String key,
BiFunction<String,Long,Object> remappingFunction) |
Replaces or sets the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeLongExactIfPresent(String key,
BiFunction<String,Long,Object> remappingFunction) |
Replaces the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeLongIfPresent(String key,
BiFunction<String,Long,Object> remappingFunction) |
Replaces the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeObject(String key,
BiFunction<String,JSONObject,Object> remappingFunction) |
Replaces or sets the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeObjectIfPresent(String key,
BiFunction<String,JSONObject,Object> remappingFunction) |
Replaces the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeShort(String key,
BiFunction<String,Short,Object> remappingFunction) |
Replaces or sets the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeShortExact(String key,
BiFunction<String,Short,Object> remappingFunction) |
Replaces or sets the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeShortExactIfPresent(String key,
BiFunction<String,Short,Object> remappingFunction) |
Replaces the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.computeShortIfPresent(String key,
BiFunction<String,Short,Object> remappingFunction) |
Replaces the value associated with the given key with the value returned by the remapping function.
|
JSONObject |
JSONObject.copy() |
Creates a shallow copy of the JSONObject
|
JSONObject |
JSONObject.deepCopy() |
Creates a deep copy of the JSONObject
|
JSONObject |
JSONArray.getObject(int index) |
Returns the value as a JSONObject for a given index
|
JSONObject |
JSONArray.getObject(int index,
JSONObject defaults) |
Returns the value as a JSONObject for a given index, or the default value if the operation is not possible
|
JSONObject |
JSONObject.getObject(String key) |
Returns the value as a JSONObject for a given key
|
JSONObject |
JSONObject.getObject(String key,
JSONObject defaults) |
Returns the value as a JSONObject for a given key, or the default value if the operation is not possible
|
JSONObject |
JSONObject.putAll(JSONObject obj) |
Adds the values of the given JSONObject to this JSONObject.
|
JSONObject |
JSONObject.putAllDeep(JSONObject obj) |
Adds the values of the given JSONObject to this JSONObject.
|
JSONObject |
JSONObject.removeArrayIf(String key,
Predicate<JSONArray> predicate) |
Removes a key from a JSONObject if the predicate returns true.
|
JSONObject |
JSONObject.removeBooleanIf(String key,
Predicate<Boolean> predicate) |
Removes a key from a JSONObject if the predicate returns true.
|
JSONObject |
JSONObject.removeByteExactIf(String key,
Predicate<Byte> predicate) |
Removes a key from a JSONObject if the predicate returns true.
|
JSONObject |
JSONObject.removeByteIf(String key,
Predicate<Byte> predicate) |
Removes a key from a JSONObject if the predicate returns true.
|
JSONObject |
JSONObject.removeDoubleExactIf(String key,
Predicate<Double> predicate) |
Removes a key from a JSONObject if the predicate returns true.
|
JSONObject |
JSONObject.removeDoubleIf(String key,
Predicate<Double> predicate) |
Removes a key from a JSONObject if the predicate returns true.
|
JSONObject |
JSONObject.removeFloatExactIf(String key,
Predicate<Float> predicate) |
Removes a key from a JSONObject if the predicate returns true.
|
JSONObject |
JSONObject.removeFloatIf(String key,
Predicate<Float> predicate) |
Removes a key from a JSONObject if the predicate returns true.
|
JSONObject |
JSONObject.removeIf(String key,
Predicate<Object> predicate) |
Removes a key from a JSONObject if the predicate returns true.
|
JSONObject |
JSONObject.removeIf(BiPredicate<String,Object> predicate) |
Removes all entries from a JSONObject where the predicate returns true.
|
JSONObject |
JSONObject.removeInstantIf(String key,
Predicate<Instant> predicate) |
Removes a key from a JSONObject if the predicate returns true.
|
JSONObject |
JSONObject.removeIntExactIf(String key,
Predicate<Integer> predicate) |
Removes a key from a JSONObject if the predicate returns true.
|
JSONObject |
JSONObject.removeIntIf(String key,
Predicate<Integer> predicate) |
Removes a key from a JSONObject if the predicate returns true.
|
JSONObject |
JSONObject.removeKeys(JSONObject obj) |
Removes all the keys if the same key exists within the other JSONObject too.
|
JSONObject |
JSONObject.removeLongExactIf(String key,
Predicate<Long> predicate) |
Removes a key from a JSONObject if the predicate returns true.
|
JSONObject |
JSONObject.removeLongIf(String key,
Predicate<Long> predicate) |
Removes a key from a JSONObject if the predicate returns true.
|
JSONObject |
JSONObject.removeObjectIf(String key,
Predicate<JSONObject> predicate) |
Removes a key from a JSONObject if the predicate returns true.
|
JSONObject |
JSONObject.removeShortExactIf(String key,
Predicate<Short> predicate) |
Removes a key from a JSONObject if the predicate returns true.
|
JSONObject |
JSONObject.removeShortIf(String key,
Predicate<Short> predicate) |
Removes a key from a JSONObject if the predicate returns true.
|
JSONObject |
JSONObject.retainArrayIf(String key,
Predicate<JSONArray> predicate) |
Removes a key from a JSONObject if the predicate returns false.
|
JSONObject |
JSONObject.retainBooleanIf(String key,
Predicate<Boolean> predicate) |
Removes a key from a JSONObject if the predicate returns false.
|
JSONObject |
JSONObject.retainByteExactIf(String key,
Predicate<Byte> predicate) |
Removes a key from a JSONObject if the predicate returns false.
|
JSONObject |
JSONObject.retainByteIf(String key,
Predicate<Byte> predicate) |
Removes a key from a JSONObject if the predicate returns false.
|
JSONObject |
JSONObject.retainDoubleExactIf(String key,
Predicate<Double> predicate) |
Removes a key from a JSONObject if the predicate returns false.
|
JSONObject |
JSONObject.retainDoubleIf(String key,
Predicate<Double> predicate) |
Removes a key from a JSONObject if the predicate returns false.
|
JSONObject |
JSONObject.retainFloatExactIf(String key,
Predicate<Float> predicate) |
Removes a key from a JSONObject if the predicate returns false.
|
JSONObject |
JSONObject.retainFloatIf(String key,
Predicate<Float> predicate) |
Removes a key from a JSONObject if the predicate returns false.
|
JSONObject |
JSONObject.retainIf(String key,
Predicate<Object> predicate) |
Removes a key from a JSONObject if the predicate returns false.
|
JSONObject |
JSONObject.retainIf(BiPredicate<String,Object> predicate) |
Removes all entries from a JSONObject where the predicate returns false.
|
JSONObject |
JSONObject.retainInstantIf(String key,
Predicate<Instant> predicate) |
Removes a key from a JSONObject if the predicate returns false.
|
JSONObject |
JSONObject.retainIntExactIf(String key,
Predicate<Integer> predicate) |
Removes a key from a JSONObject if the predicate returns false.
|
JSONObject |
JSONObject.retainIntIf(String key,
Predicate<Integer> predicate) |
Removes a key from a JSONObject if the predicate returns false.
|
JSONObject |
JSONObject.retainKeys(JSONObject obj) |
Retains only the keys if the same key exists within the other JSONObject too.
|
JSONObject |
JSONObject.retainLongExactIf(String key,
Predicate<Long> predicate) |
Removes a key from a JSONObject if the predicate returns false.
|
JSONObject |
JSONObject.retainLongIf(String key,
Predicate<Long> predicate) |
Removes a key from a JSONObject if the predicate returns false.
|
JSONObject |
JSONObject.retainObjectIf(String key,
Predicate<JSONObject> predicate) |
Removes a key from a JSONObject if the predicate returns false.
|
JSONObject |
JSONObject.retainShortExactIf(String key,
Predicate<Short> predicate) |
Removes a key from a JSONObject if the predicate returns false.
|
JSONObject |
JSONObject.retainShortIf(String key,
Predicate<Short> predicate) |
Removes a key from a JSONObject if the predicate returns false.
|
JSONObject |
JSONObject.set(String key,
Object value) |
Sets the value at a given key
|
JSONObject |
JSONObject.setIfAbsent(String key,
Object value) |
Sets the value at a given key if there is
no value associated with the key yet
|
JSONObject |
JSONObject.setIfPresent(String key,
Object value) |
Sets the value at a given key if there is
already a value associated with the key
|