com.basecmp.core.util
Class MapUtils

java.lang.Object
  extended bycom.basecmp.core.util.MapUtils

public class MapUtils
extends java.lang.Object

Collection of some utils for Map-Objects.

Author:
Wolfgang Schröder

Method Summary
static java.util.List getListByKeyPrefix(java.lang.String keyPrefix, java.util.Map map)
          Delivers a List (ArrayList) all values stored in a map for a specific key-prefix (String-keys only!).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getListByKeyPrefix

public static java.util.List getListByKeyPrefix(java.lang.String keyPrefix,
                                                java.util.Map map)
Delivers a List (ArrayList) all values stored in a map for a specific key-prefix (String-keys only!). If the stored values are of type java.util.Collection, the single values of that collection are stored in the returned List. Delivers null if no key matched the prefix.



Copyright © 2004 by basecmp® - Professional Web Solutions