- java.lang.Object
-
- org.redkale.convert.MapDecoder<R,K,V>
-
- 类型参数:
R
- ReaderK
- Map key的数据类型V
- Map value的数据类型
- 所有已实现的接口:
Decodeable<R,Map<K,V>>
- 直接已知子类:
ProtobufMapDecoder
public class MapDecoder<R extends Reader,K,V> extends Object implements Decodeable<R,Map<K,V>>
Map的反序列化操作类
详情见: https://redkale.org
- 作者:
- zhangjx
-
-
字段概要
字段 修饰符和类型 字段 说明 protected Creator<Map<K,V>>
creator
protected boolean
inited
protected Decodeable<R,K>
keyDecoder
protected Type
keyType
protected Type
type
protected Decodeable<R,V>
valueDecoder
protected Type
valueType
-
构造器概要
构造器 构造器 说明 MapDecoder(Type type, Type keyType, Type valueType, Creator<Map<K,V>> creator, Decodeable<R,K> keyDecoder, Decodeable<R,V> valueDecoder)
MapDecoder(ConvertFactory factory, Type type)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected void
checkInited()
Map<K,V>
convertFrom(R in)
反序列化操作Decodeable<R,K>
getKeyDecoder()
Type
getKeyType()
Type
getType()
泛型映射接口Decodeable<R,V>
getValueDecoder()
Type
getValueType()
protected void
setIndex(DeMember member, int index)
protected void
setPosition(DeMember member, int position)
protected void
setTag(DeMember member, int tag)
protected void
setTagSize(DeMember member, int tagSize)
-
-
-
字段详细资料
-
type
protected final Type type
-
keyType
protected final Type keyType
-
valueType
protected final Type valueType
-
keyDecoder
protected final Decodeable<R extends Reader,K> keyDecoder
-
valueDecoder
protected final Decodeable<R extends Reader,V> valueDecoder
-
inited
protected volatile boolean inited
-
-
构造器详细资料
-
MapDecoder
public MapDecoder(ConvertFactory factory, Type type)
-
-
方法详细资料
-
checkInited
protected void checkInited()
-
convertFrom
public Map<K,V> convertFrom(R in)
从接口复制的说明:Decodeable
反序列化操作- 指定者:
convertFrom
在接口中Decodeable<R extends Reader,K>
- 参数:
in
- R- 返回:
- T
-
getType
public Type getType()
从接口复制的说明:Decodeable
泛型映射接口- 指定者:
getType
在接口中Decodeable<R extends Reader,K>
- 返回:
- 反解析的数据类型
-
getKeyType
public Type getKeyType()
-
getValueType
public Type getValueType()
-
getKeyDecoder
public Decodeable<R,K> getKeyDecoder()
-
getValueDecoder
public Decodeable<R,V> getValueDecoder()
-
setTag
protected void setTag(DeMember member, int tag)
-
setTagSize
protected void setTagSize(DeMember member, int tagSize)
-
setIndex
protected void setIndex(DeMember member, int index)
-
setPosition
protected void setPosition(DeMember member, int position)
-
-