public class LocalDateFactory extends AbstractTemporalFactory<LocalDate>
All custom writers for json-io subclass this class. Special writers are not needed for handling user-defined classes. However, special writers are built/supplied by json-io for many of the primitive types and other JDK classes simply to allow for a more concise form.
dateTimeFormatter, zoneId
Constructor and Description |
---|
LocalDateFactory() |
LocalDateFactory(DateTimeFormatter dateFormatter,
ZoneId zoneId) |
Modifier and Type | Method and Description |
---|---|
protected LocalDate |
fromJsonObject(JsonObject job,
ReaderContext context) |
protected LocalDate |
fromNumber(Number l) |
protected LocalDate |
fromString(String s) |
convertToZonedDateTime, isObjectFinal, newInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
gatherRemainingValues, newInstance
public LocalDateFactory(DateTimeFormatter dateFormatter, ZoneId zoneId)
public LocalDateFactory()
protected LocalDate fromString(String s)
fromString
in class AbstractTemporalFactory<LocalDate>
protected LocalDate fromNumber(Number l)
fromNumber
in class AbstractTemporalFactory<LocalDate>
protected LocalDate fromJsonObject(JsonObject job, ReaderContext context)
fromJsonObject
in class AbstractTemporalFactory<LocalDate>
Copyright © 2023. All rights reserved.