Public 成员函数 | |
| abstract JsonElement | serialize (Long value) |
Public 属性 | |
| DEFAULT | |
| STRING | |
Defines the expected format for a
or
type when its serialized.
|
abstract |
Serialize this
using this serialization policy.
| value | the long value to be serialized into a JsonElement |
| com.google.gson.LongSerializationPolicy.DEFAULT |
This is the "default" serialization policy that will output a
object as a JSON number. For example, assume an object has a long field named "f" then the serialized output would be:
.
| com.google.gson.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:
.
1.8.8