public static class JsonReader.CollectionFactory extends Object implements JsonReader.ClassFactory
Constructor and Description |
---|
CollectionFactory() |
Modifier and Type | Method and Description |
---|---|
Object |
newInstance(Class<?> c,
JsonObject job)
Implement this method to return a new instance of the passed in Class.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isObjectFinal, newInstance, newInstance, setTarget
public Object newInstance(Class<?> c, JsonObject job)
JsonReader.ClassFactory
newInstance
in interface JsonReader.ClassFactory
c
- Class of the object that needs to be createdjob
- JsonObject (if primitive type do job.getPrimitiveValue();Copyright © 2023. All rights reserved.