public class DateFactory extends Object implements JsonReader.ClassFactory
Constructor and Description |
---|
DateFactory() |
Modifier and Type | Method and Description |
---|---|
protected Object |
fromJsonObject(Class<?> c,
JsonObject object) |
protected Object |
fromNumber(Number value) |
protected Object |
fromString(String value) |
boolean |
isObjectFinal() |
Object |
newInstance(Class<?> c,
JsonObject jObj)
Implement this method to return a new instance of the passed in Class.
|
static Date |
parseDate(String dateStr) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
gatherRemainingValues
public Object newInstance(Class<?> c, JsonObject jObj)
JsonReader.ClassFactory
newInstance
in interface JsonReader.ClassFactory
c
- Class of the object that needs to be createdjObj
- JsonObject (if primitive type do jObj.getPrimitiveValue();protected Object fromJsonObject(Class<?> c, JsonObject object)
public boolean isObjectFinal()
isObjectFinal
in interface JsonReader.ClassFactory
Copyright © 2023. All rights reserved.