org.soybeanMilk.core.os
类 HashMapObjectSource
java.lang.Object
org.soybeanMilk.core.os.ConvertableObjectSource
org.soybeanMilk.core.os.HashMapObjectSource
- 所有已实现的接口:
- ObjectSource
public class HashMapObjectSource
- extends ConvertableObjectSource
基于哈希表的一个简单对象源实现。
- 作者:
- earthAngry@gmail.com
|
方法摘要 |
java.lang.Object |
get(java.io.Serializable key,
java.lang.reflect.Type expectType)
取得对象 |
void |
set(java.io.Serializable key,
java.lang.Object obj)
保存对象 |
| 从类 java.lang.Object 继承的方法 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HashMapObjectSource
public HashMapObjectSource()
HashMapObjectSource
public HashMapObjectSource(GenericConverter genericConverter)
get
public java.lang.Object get(java.io.Serializable key,
java.lang.reflect.Type expectType)
throws ObjectSourceException
- 从接口
ObjectSource 复制的描述
- 取得对象
- 指定者:
- 接口
ObjectSource 中的 get - 指定者:
- 类
ConvertableObjectSource 中的 get
- 参数:
key - 对象关键字expectType - 期望的对象类型,可能为null
- 返回:
-
- 抛出:
ObjectSourceException
set
public void set(java.io.Serializable key,
java.lang.Object obj)
throws ObjectSourceException
- 从接口
ObjectSource 复制的描述
- 保存对象
- 指定者:
- 接口
ObjectSource 中的 set - 指定者:
- 类
ConvertableObjectSource 中的 set
- 参数:
key - 对象关键字obj - 要保存的对象
- 抛出:
ObjectSourceException