Interface JsonStringValue
- All Superinterfaces:
JsonElement<String>
,de.espirit.firstspirit.json.JsonOutput
- All Known Subinterfaces:
JsonDateValue
A value class for representing a String value in JSON.
CAUTION:
This class is still in development and may change drastically without any further notice.- Since:
- 5.2.191206
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull JsonStringValue
Returns a newjson element
wrapping the givenvalue
.static @NotNull JsonElement<?>
ofNullable
(@Nullable Object value) Returns a newjson element
wrapping the givenvalue
, orJsonNullValue.NULL
if the provided value isnull
.Methods inherited from interface de.espirit.firstspirit.json.JsonElement
getValue
Methods inherited from interface de.espirit.firstspirit.json.JsonOutput
json, writeTo
-
Method Details
-
of
Returns a newjson element
wrapping the givenvalue
.- Parameters:
value
- thevalue
to wrap (must not benull
)- Returns:
- a new
json element
- Since:
- 5.2.191206
-
ofNullable
Returns a newjson element
wrapping the givenvalue
, orJsonNullValue.NULL
if the provided value isnull
.- Parameters:
value
- thevalue
to wrap- Returns:
- a new
json element
orJsonNullValue.NULL
- Since:
- 5.2.191206
-