org.tridas.util
Class TridasIdentifierMap<V extends TridasIdentifiable>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<TridasIdentifier,V>
org.tridas.util.TridasIdentifierMap<V>
- Type Parameters:
V
- the type to map to
- All Implemented Interfaces:
- Serializable, Cloneable, Map<TridasIdentifier,V>
public class TridasIdentifierMap<V extends TridasIdentifiable>
- extends HashMap<TridasIdentifier,V>
A quick map from TridasIdentifier to anything that implements ITridas
- Author:
- Lucas Madar
- See Also:
- Serialized Form
Method Summary |
V |
put(V e)
Add this element to the map |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
TridasIdentifierMap
public TridasIdentifierMap()
TridasIdentifierMap
public TridasIdentifierMap(int initialCapacity)
TridasIdentifierMap
public TridasIdentifierMap(Collection<V> c)
- Create a TridasIdentifierMap from the given collection of TridasIdentifiables
- Parameters:
c
-
put
public final V put(V e)
- Add this element to the map
- Parameters:
e
-
- Returns:
- the previous element with the same identifier
Copyright © 2011 TRiDaS. All Rights Reserved.