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.Class<?> objectType)
取得对象 |
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.Class<?> objectType)
throws ObjectSourceException
- 从接口
ObjectSource 复制的描述
- 取得对象
- 指定者:
- 接口
ObjectSource 中的 get - 指定者:
- 类
ConvertableObjectSource 中的 get
- 参数:
key - 对象关键字objectType - 要取得对象的类型,如果为null,则表明调用者不关心对象类型
- 返回:
-
- 抛出:
ObjectSourceException
set
public void set(java.io.Serializable key,
java.lang.Object obj)
throws ObjectSourceException
- 从接口
ObjectSource 复制的描述
- 保存对象
- 指定者:
- 接口
ObjectSource 中的 set - 指定者:
- 类
ConvertableObjectSource 中的 set
- 参数:
key - 对象关键字obj - 要保存的对象
- 抛出:
ObjectSourceException