long or Long type when it is serialized.
| Modifier and Type | Field and Description |
|---|---|
| public static final LongSerializationPolicy | DEFAULT
This is the "default" serialization policy that will output a |
| public static final LongSerializationPolicy | STRING
Serializes a long value as a quoted string. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public abstract JsonElement | Returns: the serialized version ofvaluethe long value to be serialized into a value)JsonElementSerialize this |
| pack-priv abstract TypeAdapter | |
| public static LongSerializationPolicy | |
| public static LongSerializationPolicy[] |
| DEFAULT | back to summary |
|---|---|
| public static final LongSerializationPolicy DEFAULT This is the "default" serialization policy that will output a A | |
| STRING | back to summary |
|---|---|
| public static final LongSerializationPolicy STRING Serializes a long value as a quoted string. For example, assume an object has a long field
named "f" then the serialized output would be: A | |
| LongSerializationPolicy | back to summary |
|---|---|
| private LongSerializationPolicy() | |
| serialize | back to summary |
|---|---|
| public abstract JsonElement serialize(Long value) Serialize this
| |
| typeAdapter | back to summary |
|---|---|
| pack-priv abstract TypeAdapter Returns the corresponding | |
| valueOf | back to summary |
|---|---|
| public static LongSerializationPolicy valueOf(String name) | |
| values | back to summary |
|---|---|
| public static LongSerializationPolicy[] values() | |