com.atlassian.jira.util.collect
Class CollectionMap<K>

java.lang.Object
  extended by java.util.AbstractMap<K,K>
      extended by com.atlassian.jira.util.collect.CollectionMap<K>
Type Parameters:
K -
All Implemented Interfaces:
Map<K,K>

public class CollectionMap<K>
extends AbstractMap<K,K>

Adapter that provides a Map where every key maps to itself.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
CollectionMap(Collection<? extends K> collection)
           
 
Method Summary
 Set<Map.Entry<K,K>> entrySet()
           
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollectionMap

public CollectionMap(Collection<? extends K> collection)
Method Detail

entrySet

public Set<Map.Entry<K,K>> entrySet()
Specified by:
entrySet in interface Map<K,K>
Specified by:
entrySet in class AbstractMap<K,K>


Copyright © 2002-2012 Atlassian. All Rights Reserved.