org.test4j.json.decoder
类 CollectionDecoder

java.lang.Object
  继承者 org.test4j.json.decoder.base.BaseDecoder
      继承者 org.test4j.json.decoder.CollectionDecoder
所有已实现的接口:
IDecoder

public class CollectionDecoder
extends BaseDecoder


字段摘要
static CollectionDecoder toCOLLECTION
           
 
构造方法摘要
CollectionDecoder()
           
 
方法摘要
 boolean accept(Type type)
          是否接受是该类型json解码器
<T> T
decode(JSONObject json, Type toType, Map<String,Object> references)
          将json串反序列为对象
protected  Collection newInstance(Type toType)
           
 
从类 org.test4j.json.decoder.base.BaseDecoder 继承的方法
getArgType, getError, getError, getRawType, isInterfaceOrAbstract
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

toCOLLECTION

public static final CollectionDecoder toCOLLECTION
构造方法详细信息

CollectionDecoder

public CollectionDecoder()
方法详细信息

decode

public <T> T decode(JSONObject json,
                    Type toType,
                    Map<String,Object> references)
从接口 IDecoder 复制的描述
将json串反序列为对象

返回:

newInstance

protected Collection newInstance(Type toType)
覆盖:
BaseDecoder 中的 newInstance

accept

public boolean accept(Type type)
从接口 IDecoder 复制的描述
是否接受是该类型json解码器

返回:


Copyright © 2013. All rights reserved.