Interface JsonDateValue
- All Superinterfaces:
JsonElement<String>
,de.espirit.firstspirit.json.JsonOutput
,JsonStringValue
This class represents a JSON value that is a date. As there is no such value in JSON the given date is transformed
to an ISO 8601 String and passed to the constructor of the super class.
CAUTION:
This class is still in development and may change drastically without any further notice.- Since:
- 5.2.191206
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull JsonDateValue
Returns a newjson element
wrapping the givendate
.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 givendate
.- Parameters:
date
- thedate
to wrap (must not benull
)- Returns:
- a new
json element
- Since:
- 5.2.191206
-