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.
- Since:
- 5.2.191206
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic @NotNull JsonStringValueReturns a newjson elementwrapping the givenvalue.static @NotNull JsonElement<?>ofNullable(@Nullable Object value) Returns a newjson elementwrapping the givenvalue, orJsonNullValue.NULLif the provided value isnull.Methods inherited from interface de.espirit.firstspirit.json.JsonElement
getValueMethods inherited from interface de.espirit.firstspirit.json.JsonOutput
json, writeTo
-
Method Details
-
of
Returns a newjson elementwrapping the givenvalue.- Parameters:
value- thevalueto wrap (must not benull)- Returns:
- a new
json element - Since:
- 5.2.191206
-
ofNullable
Returns a newjson elementwrapping the givenvalue, orJsonNullValue.NULLif the provided value isnull.- Parameters:
value- thevalueto wrap- Returns:
- a new
json elementorJsonNullValue.NULL - Since:
- 5.2.191206
-