org.xiruss.repository.common
Class VersionByResourceMapImpl
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap
org.xiruss.repository.common.RepositoryObjectMapCommonImpl
org.xiruss.repository.common.VersionMapImpl
org.xiruss.repository.common.VersionByResourceMapImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map, RepositoryObjectMapCommon, VersionByResourceMap, VersionMap
- Direct Known Subclasses:
- VersionByResourceMapClient
public class VersionByResourceMapImpl
- extends VersionMapImpl
- implements VersionByResourceMap
Map of versions by Resource.
This behaves just like a version map except that a given version
can be only represented once within the map. This enables access
by resource as the key.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.xiruss.snapcm.api.helpers.VersionMap |
get |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, remove, size, values |
VersionByResourceMapImpl
public VersionByResourceMapImpl()
VersionByResourceMapImpl
public VersionByResourceMapImpl(VersionByResourceMap versions)
- Construct a new version map from a vector of versions.
put
public void put(Resource key,
Version ver)
- Specified by:
put
in interface VersionByResourceMap
put
public void put(Version version)
- Specified by:
put
in interface VersionMap
- Overrides:
put
in class VersionMapImpl
get
public Version get(Resource key)
- Specified by:
get
in interface VersionByResourceMap
containsKey
public boolean containsKey(Resource res)
- Specified by:
containsKey
in interface VersionByResourceMap
remove
public Version remove(Version ver)
- Specified by:
remove
in interface VersionMap
- Overrides:
remove
in class VersionMapImpl
putAll
public void putAll(java.util.List versions)
putAll
public void putAll(java.util.Map versions)
- Specified by:
putAll
in interface java.util.Map
- Overrides:
putAll
in class java.util.HashMap