com.atlassian.bamboo.utils.map
Class FilteredMap<V>

java.lang.Object
  extended by com.atlassian.bamboo.utils.map.FilteredMap<V>
All Implemented Interfaces:
Map<String,V>

public class FilteredMap<V>
extends Object
implements Map<String,V>


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
FilteredMap(String prefix)
           
FilteredMap(String prefix, Map<String,V> decoratedMap)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
static
<T> FilteredMap<T>
decorate(String prefix, Map<String,T> params)
           
 Set<Map.Entry<String,V>> entrySet()
           
 boolean equals(Object o)
           
 V get(Object key)
           
 Map<String,V> getDecoratedMap()
           
 boolean isEmpty()
           
 Set<String> keySet()
           
 V put(String key, V value)
           
 void putAll(Map t)
           
 V remove(Object key)
           
 int size()
           
 FilteredMap<V> subset(String prefix)
           
 Collection<V> values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
hashCode
 

Constructor Detail

FilteredMap

public FilteredMap(String prefix)

FilteredMap

public FilteredMap(String prefix,
                   Map<String,V> decoratedMap)
Method Detail

subset

public FilteredMap<V> subset(String prefix)

size

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

isEmpty

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

containsValue

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

containsKey

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

get

public V get(Object key)
Specified by:
get in interface Map<String,V>

put

public V put(String key,
             V value)
Specified by:
put in interface Map<String,V>

remove

public V remove(Object key)
Specified by:
remove in interface Map<String,V>

putAll

public void putAll(Map t)
Specified by:
putAll in interface Map<String,V>

clear

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

keySet

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

values

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

entrySet

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

equals

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

getDecoratedMap

public Map<String,V> getDecoratedMap()

decorate

public static <T> FilteredMap<T> decorate(String prefix,
                                          Map<String,T> params)


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.