Serialized Form (fastjson 1.1.26 API)

fastjson



Serialized Form


Package com.alibaba.fastjson

Class com.alibaba.fastjson.JSONArray extends JSON implements Serializable

serialVersionUID: 1L

Serialized Fields

list

List<E> list

Class com.alibaba.fastjson.JSONException extends RuntimeException implements Serializable

serialVersionUID: 1L

Class com.alibaba.fastjson.JSONObject extends JSON implements Serializable

serialVersionUID: 1L

Serialized Fields

map

Map<K,V> map

Package com.alibaba.fastjson.asm

Class com.alibaba.fastjson.asm.ASMException extends JSONException implements Serializable

serialVersionUID: 1L


Package com.alibaba.fastjson.util

Class com.alibaba.fastjson.util.AntiCollisionHashMap extends AbstractMap<K,V> implements Serializable

serialVersionUID: 362498820763181265L

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Reconstitute the SafelyHashMap instance from a stream (i.e., deserialize it).

Throws:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Save the state of the SafelyHashMap instance to a stream (i.e., serialize it).

Serial Data:
The capacity of the SafelyHashMap (the length of the bucket array) is emitted (int), followed by the size (an int, the number of key-value mappings), followed by the key (Object) and value (Object) for each key-value mapping. The key-value mappings are emitted in no particular order.
Throws:
IOException
Serialized Fields

threshold

int threshold
The next size value at which to resize (capacity * load factor).

 

loadFactor

float loadFactor
The load factor for the hash table.

 

random

int random



Copyright © 2012 Alibaba Group. All Rights Reserved.