org.mule.util
Class MapCombiner

java.lang.Object
  extended by org.mule.util.MapCombiner
All Implemented Interfaces:
Serializable, Map<Object,Object>

public class MapCombiner
extends Object
implements Map<Object,Object>, Serializable

This allows a collection (list) of maps to be defined in Spring, via the "list" property, and then presents all the maps as a single combine map at run time. For efficiency the combination of maps is done once and then cached.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
static String LIST
           
static int UNLIMITED_DEPTH
           
 
Constructor Summary
MapCombiner()
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set entrySet()
           
 boolean equals(Object o)
           
 Object get(Object key)
           
 List getList()
           
 int hashCode()
           
 boolean isEmpty()
           
 Set keySet()
           
 Object put(Object key, Object value)
           
 void putAll(Map t)
           
 Object remove(Object key)
           
 void setList(List list)
           
 void setMaxDepth(int maxDepth)
           
 int size()
           
 String toString()
           
 Collection values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LIST

public static final String LIST
See Also:
Constant Field Values

UNLIMITED_DEPTH

public static final int UNLIMITED_DEPTH
See Also:
Constant Field Values
Constructor Detail

MapCombiner

public MapCombiner()
Method Detail

setMaxDepth

public void setMaxDepth(int maxDepth)

setList

public void setList(List list)

getList

public List getList()

hashCode

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

equals

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

toString

public String toString()
Overrides:
toString in class Object

size

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

clear

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

isEmpty

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

containsKey

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

containsValue

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

values

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

putAll

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

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map<Object,Object>

keySet

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

get

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

remove

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

put

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


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.