Uses of Interface
org.tquadrat.foundation.jsonbuilder.JSONObject
Packages that use JSONObject
Package
Description
The classes that form the API for the Foundation JSON Builder
library.
The internal implementation classes for the Foundation JSON Builder
library.
-
Uses of JSONObject in org.tquadrat.foundation.jsonbuilder
Methods in org.tquadrat.foundation.jsonbuilder that return JSONObjectModifier and TypeMethodDescriptionJSONArray.addObject()Adds a new empty instance ofJSONObjectto this array and returns that.JSONArray.addObject(int index) Adds a new empty instance ofJSONObjectto this array at the given index and returns that.default JSONObjectJSONValue.asObject()Returns this JSON value asJSONObject, assuming that this value represents a JSON object.default JSONObjectJSONBuilder.copyObject(JSONObject source) Returns a deep copy of the given JSON object.JSONBuilder.createObject()Returns a new empty instance ofJSONObject.default JSONObjectJSONBuilder.createObject(Collection<String> names, Function<String, JSONValue> provider) Returns a new instance ofJSONObjectthat is populated with the values returned by the givenFunction.default JSONObjectJSONArray.getObject(int index) Convenience method that returns the value with the specified index as aJSONObject.default JSONObjectJSONObject.getObject(String name, JSONObject defaultValue) Convenience method that returns the value with the specified name as aJSONObject.JSONObject.merge(JSONObject object) Copies all members of the specified object into this object.Removes a member with the specified name from this object.default JSONObjectSets the value of the member with the specified name to the JSON representation of the specifiedbooleanvalue.Sets the value of the member with the specified name to the JSON representation of the specifieddoublevalue.Sets the value of the member with the specified name to the JSON representation of the specifiedfloatvalue.Sets the value of the member with the specified name to the JSON representation of the specifiedintvalue.Sets the value of the member with the specified name to the JSON representation of the specifiedlongvalue.Sets the value of the member with the specified name to the JSON representation of the specifiedDoublevalue.Sets the value of the member with the specified name to the JSON representation of the specifiedFloatvalue.Sets the value of the member with the specified name to the JSON representation of the specifiedIntegervalue.Sets the value of the member with the specified name to the JSON representation of the specifiedLongvalue.Sets the value of the member with the specified name to the JSON representation of the specifiedStringvalue.JSONObject.set(String name, BigDecimal value) Sets the value of the member with the specified name to the JSON representation of the specifiedBigDecimalvalue.JSONObject.set(String name, BigInteger value) Sets the value of the member with the specified name to the JSON representation of the specifiedBigIntegervalue.Sets the value of the member with the specified name to the specifiedJSONValuevalue.<T extends Dimension>
JSONObjectJSONObject.set(String name, DimensionedValue<T> value, T targetUnit) Sets the value of the member with the specified name to the JSON representation of the specifiedDimensionedValuevalue.JSONArray.setObject(int index) Sets a new empty instance ofJSONObjectto this array at the given index and returns that.Sets a new empty instance ofJSONObjectto this object and returns that.default <T extends Dimension>
JSONObjectJSONBuilder.valueOf(DimensionedValue<T> value, T targetUnit) Returns aJSONValueinstance (more precisely, an instance ofJSONObject) that represents the givenDimensionedValueinstance.Methods in org.tquadrat.foundation.jsonbuilder with parameters of type JSONObjectModifier and TypeMethodDescriptiondefault JSONObjectJSONBuilder.copyObject(JSONObject source) Returns a deep copy of the given JSON object.default JSONObjectJSONObject.getObject(String name, JSONObject defaultValue) Convenience method that returns the value with the specified name as aJSONObject.JSONObject.merge(JSONObject object) Copies all members of the specified object into this object. -
Uses of JSONObject in org.tquadrat.foundation.jsonbuilder.internal
Classes in org.tquadrat.foundation.jsonbuilder.internal that implement JSONObjectMethods in org.tquadrat.foundation.jsonbuilder.internal that return JSONObjectModifier and TypeMethodDescriptionJSONArrayImpl.addObject()Adds a new empty instance ofJSONObjectto this array and returns that.JSONArrayImpl.addObject(int index) Adds a new empty instance ofJSONObjectto this array at the given index and returns that.final JSONObjectJSONBuilderImpl.createObject()Returns a new empty instance ofJSONObject.JSONObjectImpl.merge(JSONObject object) Copies all members of the specified object into this object.final JSONObjectRemoves a member with the specified name from this object.final JSONObjectSets the value of the member with the specified name to the JSON representation of the specifieddoublevalue.final JSONObjectSets the value of the member with the specified name to the JSON representation of the specifiedfloatvalue.final JSONObjectSets the value of the member with the specified name to the JSON representation of the specifiedintvalue.final JSONObjectSets the value of the member with the specified name to the JSON representation of the specifiedlongvalue.final JSONObjectSets the value of the member with the specified name to the JSON representation of the specifiedDoublevalue.final JSONObjectSets the value of the member with the specified name to the JSON representation of the specifiedFloatvalue.final JSONObjectSets the value of the member with the specified name to the JSON representation of the specifiedIntegervalue.final JSONObjectSets the value of the member with the specified name to the JSON representation of the specifiedLongvalue.final JSONObjectSets the value of the member with the specified name to the JSON representation of the specifiedStringvalue.final JSONObjectJSONObjectImpl.set(String name, BigDecimal value) Sets the value of the member with the specified name to the JSON representation of the specifiedBigDecimalvalue.final JSONObjectJSONObjectImpl.set(String name, BigInteger value) Sets the value of the member with the specified name to the JSON representation of the specifiedBigIntegervalue.final JSONObjectSets the value of the member with the specified name to the specifiedJSONValuevalue.<T extends Dimension>
JSONObjectJSONObjectImpl.set(String name, DimensionedValue<T> value, T targetUnit) Sets the value of the member with the specified name to the JSON representation of the specifiedDimensionedValuevalue.final JSONObjectJSONArrayImpl.setObject(int index) Sets a new empty instance ofJSONObjectto this array at the given index and returns that.final JSONObjectSets a new empty instance ofJSONObjectto this object and returns that.Methods in org.tquadrat.foundation.jsonbuilder.internal with parameters of type JSONObjectModifier and TypeMethodDescriptionJSONObjectImpl.merge(JSONObject object) Copies all members of the specified object into this object.
