public static enum TimeValues.CommonTimeValueTypeAdapterFactory extends java.lang.Enum<TimeValues.CommonTimeValueTypeAdapterFactory> implements com.google.gson.TypeAdapterFactory
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
private java.lang.ThreadLocal<java.util.function.Function<java.lang.String,ITimeValue>> |
valueResolver |
Modifier and Type | Method and Description |
---|---|
<T> com.google.gson.TypeAdapter<T> |
create(com.google.gson.Gson gson,
com.google.gson.reflect.TypeToken<T> type) |
void |
setValueResolver(java.util.function.Function<java.lang.String,ITimeValue> valueResolver) |
static TimeValues.CommonTimeValueTypeAdapterFactory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimeValues.CommonTimeValueTypeAdapterFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeValues.CommonTimeValueTypeAdapterFactory INSTANCE
private final java.lang.ThreadLocal<java.util.function.Function<java.lang.String,ITimeValue>> valueResolver
public static TimeValues.CommonTimeValueTypeAdapterFactory[] values()
for (TimeValues.CommonTimeValueTypeAdapterFactory c : TimeValues.CommonTimeValueTypeAdapterFactory.values()) System.out.println(c);
public static TimeValues.CommonTimeValueTypeAdapterFactory valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void setValueResolver(@Nullable java.util.function.Function<java.lang.String,ITimeValue> valueResolver)
@Nullable public <T> com.google.gson.TypeAdapter<T> create(com.google.gson.Gson gson, com.google.gson.reflect.TypeToken<T> type)
create
in interface com.google.gson.TypeAdapterFactory