- All Implemented Interfaces:
- Map<WorldObjectId,T>
- Enclosing class:
- AbstractLocalWorldView
protected class AbstractLocalWorldView.LazyCompositeObjectMap<T extends ICompositeWorldObject>
extends cz.cuni.amis.utils.maps.AbstractLazyMap<WorldObjectId,T>
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.