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.
- Since:
- 5.2.191206
- See Also:
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic @NotNull JsonDateValueReturns a newjson elementwrapping the givendate.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 givendate.- Parameters:
date- thedateto wrap (must not benull)- Returns:
- a new
json element - Since:
- 5.2.191206
-