|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.amis.utils.maps.AbstractLazyMap<WorldObjectId,T>
cz.cuni.amis.pogamut.multi.communication.worldview.impl.AbstractLocalWorldView.LazyCompositeObjectMap<T>
protected class AbstractLocalWorldView.LazyCompositeObjectMap<T extends ICompositeWorldObject>
This is a class for lazy maps holding CompositeWorldObjects . These maps will be returned by all getAll methods,
the map ensures, that the CompositeObject creation from its parts is delayed as long as possible (it will only be invoked,
when the object itself is requested).
If you need to iterate over the map, iterate over the keySet, so you will preserve the lazy-behavior.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
AbstractLocalWorldView.LazyCompositeObjectMap(long time)
|
Method Summary | |
---|---|
protected T |
create(Object key)
|
boolean |
setTimeKey(long newTime)
|
Methods inherited from class cz.cuni.amis.utils.maps.AbstractLazyMap |
---|
addKey, clear, clearCache, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, setKeySet, size, values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public AbstractLocalWorldView.LazyCompositeObjectMap(long time)
Method Detail |
---|
public boolean setTimeKey(long newTime)
protected T create(Object key)
create
in class cz.cuni.amis.utils.maps.AbstractLazyMap<WorldObjectId,T extends ICompositeWorldObject>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |