Uses of Interface
de.espirit.firstspirit.json.JsonElement
Package
Description
-
Uses of JsonElement in de.espirit.firstspirit.generate.functions.json
Modifier and TypeMethodDescription<T> @NotNull JsonElement<?>
JsonGenerationContext.handle
(T object) Entry point for the transformation of an object to aJsonElement
. -
Uses of JsonElement in de.espirit.firstspirit.generate.functions.json.handler
Modifier and TypeMethodDescription@NotNull JsonElement<?>
JsonHandler.handle
(@NotNull JsonGenerationContext context, T value) This method transforms the given value to a validJsonElement
. -
Uses of JsonElement in de.espirit.firstspirit.json
Modifier and TypeInterfaceDescriptioninterface
The interface for json arrays.interface
The root interface for json objects.interface
An interface for representing a json key/value pair containing of a key and aJsonElement
.Modifier and TypeMethodDescription@NotNull JsonElement<?>
JsonArray.get
(int index) Returns theelement
at the specified position in this array.@Nullable JsonElement<?>
Get the value with the specified key.@NotNull JsonElement<?>
JsonPair.getValue()
This method returns the current value of the pair.@Nullable JsonElement<?>
Get the value for the specified path.Modifier and TypeMethodDescriptiondefault @NotNull Stream<JsonElement<?>>
JsonArray.stream()
This method transforms the current values list to a stream and returns it.@NotNull Collection<JsonElement<?>>
JsonArray.values()
Returns the currentvalues
in a newcollection
.Modifier and TypeMethodDescription@NotNull JsonArray
JsonArray.add
(@NotNull JsonElement<?>... values) This method adds one or more elements to the list.static @NotNull JsonPair
JsonPair.of
(@NotNull String key, @NotNull JsonElement<?> value) @NotNull JsonObject
JsonObject.put
(@NotNull String key, @NotNull JsonElement<?> value) This method adds one pair to the object.@NotNull JsonArray
JsonArray.remove
(@NotNull JsonElement<?>... values) This method removes the given {link JsonElement elements}.Modifier and TypeMethodDescription@NotNull JsonArray
JsonArray.add
(@NotNull Collection<? extends JsonElement<?>> values) This method adds a collection ofJsonElement
instances to the list.@NotNull JsonArray
JsonArray.remove
(@NotNull Collection<? extends JsonElement<?>> values) This method removes a collection ofJsonElement
instances from the list. -
Uses of JsonElement in de.espirit.firstspirit.json.values
Modifier and TypeInterfaceDescriptioninterface
A value class for representing a boolean value in JSON.interface
This class represents a JSON value that is a date.interface
A value class representing a null value in JSON.interface
A value class for representing a numeric value in JSON.interface
A value class for representing a String value in JSON.Modifier and TypeMethodDescriptionstatic @NotNull JsonElement<?>
JsonStringValue.ofNullable
(@Nullable Object value) Returns a newjson element
wrapping the givenvalue
, orJsonNullValue.NULL
if the provided value isnull
.