|
Carrot2 v3.5.2
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.util.MapUtils
public class MapUtils
Utilities for working with Maps.
| Method Summary | ||
|---|---|---|
static
|
asHashMap(Map<K,V> map)
|
|
static
|
increment(Map<K,Integer> map,
K key)
|
|
static
|
increment(Map<K,Integer> map,
K key,
int value)
|
|
static Map<String,Object> |
unpack(Map map)
Iterates through entries of the input map and for values being String
arrays puts the first element of the map in the result map. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <K,V> HashMap<K,V> asHashMap(Map<K,V> map)
public static Map<String,Object> unpack(Map map)
map and for values being String
arrays puts the first element of the map in the result map. Scalar values get
copied to the output map unchanged.
This method might be useful for "unpacking" values from servlet HTTP requests.
public static <K> Integer increment(Map<K,Integer> map,
K key)
public static <K> Integer increment(Map<K,Integer> map,
K key,
int value)
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||