org.apache.camel.util
Class CollectionHelper
java.lang.Object
org.apache.camel.util.CollectionHelper
public class CollectionHelper
- extends Object
A number of helper methods for working with collections
- Version:
- $Revision: 1.1 $
Method Summary |
static void |
appendValue(Map map,
Object key,
Object value)
Sets the value of the entry in the map for the given key, though if the
map already contains a value for the given key then the value is appended
to a list of values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
appendValue
public static void appendValue(Map map,
Object key,
Object value)
- Sets the value of the entry in the map for the given key, though if the
map already contains a value for the given key then the value is appended
to a list of values.
- Parameters:
map
- the map to add the entry tokey
- the key in the mapvalue
- the value to put in the map
Copyright © 2007 Apache Software Foundation. All Rights Reserved.