public class SmallMap extends Object
| 构造器和说明 |
|---|
SmallMap(int maxElements)
Create a map with the given maximum number of entries.
|
public SmallMap(int maxElements)
maxElements - the maximum number of entriespublic int addObject(int id,
Object o)
id - the object ido - the objectpublic void freeObject(int id)
id - the id of the object to removepublic Object getObject(int id, boolean ifAvailable)
id - the id of the objectifAvailable - only return it if available, otherwise return nullDbException - if isAvailable is false and the object has not been
foundCopyright © 2017. All rights reserved.