java.lang.Enum).
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| pack-priv static final TypeAdapterFactory | |
| private final Map | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static int | calculateHashMapCapacity(int numMappings)
Taken from Java 19 method |
| public T | read(JsonReader in)
Implements abstract com. Reads one JSON value (an array, object, string, number, boolean or null) and converts it to a Java object. |
| public void | write(JsonWriter out, T value)
Implements abstract com. Writes one JSON value (an array, object, string, number, boolean or null) for |
| constantToName | back to summary |
|---|---|
| private final Map<T, String> constantToName | |
| FACTORY | back to summary |
|---|---|
| pack-priv static final TypeAdapterFactory FACTORY | |
| nameToConstant | back to summary |
|---|---|
| private final Map<String, T> nameToConstant | |
| stringToConstant | back to summary |
|---|---|
| private final Map<String, T> stringToConstant | |
| EnumTypeAdapter | back to summary |
|---|---|
| private EnumTypeAdapter(Class<T> classOfT) | |
| calculateHashMapCapacity | back to summary |
|---|---|
| private static int calculateHashMapCapacity(int numMappings) Taken from Java 19 method | |
| read | back to summary |
|---|---|
| public T read(JsonReader in) throws IOException Implements abstract com. Doc from com. Reads one JSON value (an array, object, string, number, boolean or null) and converts it to a Java object. Returns the converted object.
| |
| write | back to summary |
|---|---|
| public void write(JsonWriter out, T value) throws IOException Implements abstract com. Doc from com. Writes one JSON value (an array, object, string, number, boolean or null) for
| |