- java.lang.Object
-
- org.redkale.convert.CollectionDecoder<R,T>
-
- 类型参数:
R
- ReaderT
- 反解析的集合元素类型
- 所有已实现的接口:
Decodeable<R,Collection<T>>
- 直接已知子类:
ProtobufCollectionDecoder
public class CollectionDecoder<R extends Reader,T> extends Object implements Decodeable<R,Collection<T>>
Collection的反序列化操作类
支持一定程度的泛型。
详情见: https://redkale.org
- 作者:
- zhangjx
-
-
字段概要
字段 修饰符和类型 字段 说明 protected Decodeable<R,T>
componentDecoder
protected Type
componentType
protected Creator<Collection<T>>
creator
protected boolean
inited
protected Type
type
-
构造器概要
构造器 构造器 说明 CollectionDecoder(Type type, Type componentType, Creator<Collection<T>> creator, Decodeable<R,T> componentDecoder)
CollectionDecoder(ConvertFactory factory, Type type)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected void
checkInited()
Collection<T>
convertFrom(R in)
反序列化操作Decodeable<R,T>
getComponentDecoder()
Type
getComponentType()
Type
getType()
泛型映射接口
-
-
-
字段详细资料
-
type
protected final Type type
-
componentType
protected final Type componentType
-
creator
protected Creator<Collection<T>> creator
-
componentDecoder
protected final Decodeable<R extends Reader,T> componentDecoder
-
inited
protected volatile boolean inited
-
-
构造器详细资料
-
CollectionDecoder
public CollectionDecoder(ConvertFactory factory, Type type)
-
CollectionDecoder
public CollectionDecoder(Type type, Type componentType, Creator<Collection<T>> creator, Decodeable<R,T> componentDecoder)
-
-
方法详细资料
-
checkInited
protected void checkInited()
-
convertFrom
public Collection<T> convertFrom(R in)
从接口复制的说明:Decodeable
反序列化操作- 指定者:
convertFrom
在接口中Decodeable<R extends Reader,T>
- 参数:
in
- R- 返回:
- T
-
getType
public Type getType()
从接口复制的说明:Decodeable
泛型映射接口- 指定者:
getType
在接口中Decodeable<R extends Reader,T>
- 返回:
- 反解析的数据类型
-
getComponentType
public Type getComponentType()
-
getComponentDecoder
public Decodeable<R,T> getComponentDecoder()
-
-