org.jboss.osgi.resolver.spi
Class RemoveOnlyMap<K,V>

java.lang.Object
  extended by org.jboss.osgi.resolver.spi.RemoveOnlyMap<K,V>
All Implemented Interfaces:
Map<K,V>

public class RemoveOnlyMap<K,V>
extends Object
implements Map<K,V>

A Map that does not allow put operations.

Since:
23-Jan-2013
Author:
thomas.diesler@jboss.com

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

Constructor Detail

RemoveOnlyMap

public RemoveOnlyMap(Map<K,V> delegate)
Method Detail

clear

public void clear()
Specified by:
clear in interface Map<K,V>

containsKey

public boolean containsKey(Object arg0)
Specified by:
containsKey in interface Map<K,V>

containsValue

public boolean containsValue(Object arg0)
Specified by:
containsValue in interface Map<K,V>

entrySet

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

get

public V get(Object arg0)
Specified by:
get in interface Map<K,V>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<K,V>

keySet

public Set<K> keySet()
Specified by:
keySet in interface Map<K,V>

put

public V put(K arg0,
             V arg1)
Specified by:
put in interface Map<K,V>

putAll

public void putAll(Map<? extends K,? extends V> arg0)
Specified by:
putAll in interface Map<K,V>

remove

public V remove(Object arg0)
Specified by:
remove in interface Map<K,V>

size

public int size()
Specified by:
size in interface Map<K,V>

values

public Collection<V> values()
Specified by:
values in interface Map<K,V>

hashCode

public int hashCode()
Specified by:
hashCode in interface Map<K,V>
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Specified by:
equals in interface Map<K,V>
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 JBoss by Red Hat. All Rights Reserved.