what-the-bank/sources/com/google/gson/LongSerializationPolicy.java

26 lines
815 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.gson;
/* loaded from: classes.dex */
public enum LongSerializationPolicy {
DEFAULT { // from class: com.google.gson.LongSerializationPolicy.1
@Override // com.google.gson.LongSerializationPolicy
public final JsonElement serialize(Long l) {
if (l == null) {
return JsonNull.INSTANCE;
}
return new JsonPrimitive(l);
}
},
STRING { // from class: com.google.gson.LongSerializationPolicy.2
@Override // com.google.gson.LongSerializationPolicy
public final JsonElement serialize(Long l) {
if (l == null) {
return JsonNull.INSTANCE;
}
return new JsonPrimitive(l.toString());
}
};
public abstract JsonElement serialize(Long l);
}