org.tridas.util
Class TridasIdentifierMap<V extends TridasIdentifiable>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<TridasIdentifier,V>
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
TridasIdentifierMap()
           
TridasIdentifierMap(Collection<V> c)
          Create a TridasIdentifierMap from the given collection of TridasIdentifiables
TridasIdentifierMap(int initialCapacity)
           
 
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
 
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 java.util.Map
equals, hashCode
 

Constructor Detail

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 -
Method Detail

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.