- java.lang.Object
-
- org.redkale.convert.ArrayDecoder<R,T>
-
- 类型参数:
R- ReaderT- 反解析的数组元素类型
- 所有已实现的接口:
Decodeable<R,T[]>
- 直接已知子类:
ProtobufArrayDecoder
public class ArrayDecoder<R extends Reader,T> extends Object implements Decodeable<R,T[]>
数组的反序列化操作类
对象数组的反序列化,不包含int[]、long[]这样的primitive class数组。
支持一定程度的泛型。
详情见: https://redkale.org
- 作者:
- zhangjx
-
-
字段概要
字段 修饰符和类型 字段 说明 protected IntFunction<T[]>componentArrayFunctionprotected ClasscomponentClassprotected Decodeable<R,T>componentDecoderprotected TypecomponentTypeprotected booleaninitedprotected Typetype
-
构造器概要
构造器 构造器 说明 ArrayDecoder(ConvertFactory factory, Type type)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidcheckInited()T[]convertFrom(R in)反序列化操作Decodeable<R,T>getComponentDecoder()TypegetComponentType()TypegetType()泛型映射接口StringtoString()
-
-
-
字段详细资料
-
type
protected final Type type
-
componentType
protected final Type componentType
-
componentClass
protected final Class componentClass
-
componentDecoder
protected final Decodeable<R extends Reader,T> componentDecoder
-
componentArrayFunction
protected final IntFunction<T[]> componentArrayFunction
-
inited
protected volatile boolean inited
-
-
构造器详细资料
-
ArrayDecoder
public ArrayDecoder(ConvertFactory factory, Type type)
-
-
方法详细资料
-
checkInited
protected void checkInited()
-
convertFrom
public 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()
-
-