org.xiruss.repository.common
Class VersionMapImpl

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by org.xiruss.repository.common.RepositoryObjectMapCommonImpl
              extended by org.xiruss.repository.common.VersionMapImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map, RepositoryObjectMapCommon, VersionMap
Direct Known Subclasses:
VersionByResourceMapImpl, VersionMapClient

public class VersionMapImpl
extends RepositoryObjectMapCommonImpl
implements VersionMap

HashMap of versions by version ID. This class exists mostly to make it clear what the return value of various query methods that return hash maps are.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
VersionMapImpl()
           
VersionMapImpl(java.util.Collection vector)
          Construct a new version map from a vector of versions.
VersionMapImpl(VersionMap map)
           
 
Method Summary
 Version get(java.lang.String key)
           
 void put(Version version)
           
 Version remove(Version ver)
           
 
Methods inherited from class org.xiruss.repository.common.RepositoryObjectMapCommonImpl
getKeyIterator, getValueIterator, put, remove
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, 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.RepositoryObjectMapCommon
getKeyIterator, getValueIterator, put, remove
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

VersionMapImpl

public VersionMapImpl()

VersionMapImpl

public VersionMapImpl(java.util.Collection vector)
Construct a new version map from a vector of versions.


VersionMapImpl

public VersionMapImpl(VersionMap map)
Method Detail

put

public void put(Version version)
Specified by:
put in interface VersionMap

get

public Version get(java.lang.String key)
Specified by:
get in interface VersionMap

remove

public Version remove(Version ver)
Specified by:
remove in interface VersionMap