public class EnumClassFactory extends Object implements JsonReader.ClassFactory
| Constructor and Description |
|---|
EnumClassFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected Enum |
fromString(Class<?> c,
String s) |
protected String |
getEnumName(JsonObject job) |
Object |
newInstance(Class<?> c,
JsonObject jObj,
ReaderContext context)
Implement this method to return a new instance of the passed in Class.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgatherRemainingValues, isObjectFinal, newInstancepublic Object newInstance(Class<?> c, JsonObject jObj, ReaderContext context)
JsonReader.ClassFactorynewInstance in interface JsonReader.ClassFactoryc - Class of the object that needs to be createdjObj - JsonObject (if primitive type do jObj.getPrimitiveValue();context - ReaderContext for creating objects an getting read optionsprotected String getEnumName(JsonObject job)
Copyright © 2023. All rights reserved.