jetbrains.buildServer.dataStructures
Class CompositeMap<TK,TV>

java.lang.Object
  extended by jetbrains.buildServer.dataStructures.CompositeMap<TK,TV>
All Implemented Interfaces:
java.util.Map<TK,TV>

public class CompositeMap<TK,TV>
extends java.lang.Object
implements java.util.Map<TK,TV>

Composite readonly map

Since:
7.0
Author:
Eugene Petrenko (eugene.petrenko@gmail.com) Date: 13.09.11 17:36

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

Constructor Detail

CompositeMap

public CompositeMap(@NotNull
                    java.util.Collection<java.util.Map<TK,TV>> maps)
Method Detail

size

public int size()
Specified by:
size in interface java.util.Map<TK,TV>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Map<TK,TV>

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface java.util.Map<TK,TV>

containsValue

public boolean containsValue(java.lang.Object value)
Specified by:
containsValue in interface java.util.Map<TK,TV>

get

public TV get(java.lang.Object key)
Specified by:
get in interface java.util.Map<TK,TV>

put

public TV put(TK key,
              TV value)
Specified by:
put in interface java.util.Map<TK,TV>

remove

public TV remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map<TK,TV>

putAll

public void putAll(java.util.Map<? extends TK,? extends TV> m)
Specified by:
putAll in interface java.util.Map<TK,TV>

clear

public void clear()
Specified by:
clear in interface java.util.Map<TK,TV>

keySet

public java.util.Set<TK> keySet()
Specified by:
keySet in interface java.util.Map<TK,TV>

values

public java.util.Collection<TV> values()
Specified by:
values in interface java.util.Map<TK,TV>

entrySet

public java.util.Set<java.util.Map.Entry<TK,TV>> entrySet()
Specified by:
entrySet in interface java.util.Map<TK,TV>