/** * Creates a mult-value map backed by the given map which returns * collections of type ArrayList. * * @param map the map to decorate * @return a multi-value map backed by the given map which returns ArrayLists of values. * @see MultiValueMap * @since Commons Collections 3.2 */ public static Map multiValueMap(Map map) { return MultiValueMap.decorate(map); }
/** * Creates a multi-value map backed by the given map which returns * collections created by the specified collection factory. * * @param map the map to decorate * @param collectionFactory a factor which creates collection objects * @return a multi-value map backed by the given map which returns collections * created by the specified collection factory * @see MultiValueMap * @since Commons Collections 3.2 */ public static Map multiValueMap(Map map, Factory collectionFactory) { return MultiValueMap.decorate(map, collectionFactory); }
/** * Creates a multi-value map backed by the given map which returns * collections of the specified type. * * @param map the map to decorate * @param collectionClass the type of collections to return from the map (must contain public no-arg constructor * and extend Collection). * @return a multi-value map backed by the given map which returns collections of the specified type * @see MultiValueMap * @since Commons Collections 3.2 */ public static Map multiValueMap(Map map, Class collectionClass) { return MultiValueMap.decorate(map, collectionClass); }
/** * Creates a mult-value map backed by the given map which returns * collections of type ArrayList. * * @param map the map to decorate * @return a multi-value map backed by the given map which returns ArrayLists of values. * @see MultiValueMap * @since Commons Collections 3.2 */ public static Map multiValueMap(Map map) { return MultiValueMap.decorate(map); }
/** * Creates a multi-value map backed by the given map which returns * collections of the specified type. * * @param map the map to decorate * @param collectionClass the type of collections to return from the map (must contain public no-arg constructor * and extend Collection). * @return a multi-value map backed by the given map which returns collections of the specified type * @see MultiValueMap * @since Commons Collections 3.2 */ public static Map multiValueMap(Map map, Class collectionClass) { return MultiValueMap.decorate(map, collectionClass); }
/** * Creates a multi-value map backed by the given map which returns * collections created by the specified collection factory. * * @param map the map to decorate * @param collectionFactory a factor which creates collection objects * @return a multi-value map backed by the given map which returns collections * created by the specified collection factory * @see MultiValueMap * @since Commons Collections 3.2 */ public static Map multiValueMap(Map map, Factory collectionFactory) { return MultiValueMap.decorate(map, collectionFactory); }
private MultiValueMap createTestMap(Class collectionClass) { final MultiValueMap map = MultiValueMap.decorate(new HashMap(), collectionClass); map.put("one", "uno"); map.put("one", "un"); map.put("two", "dos"); map.put("two", "deux"); map.put("three", "tres"); map.put("three", "trois"); return map; }
/** * Creates a mult-value map backed by the given map which returns * collections of type ArrayList. * * @param map the map to decorate * @return a multi-value map backed by the given map which returns ArrayLists of values. * @see MultiValueMap * @since Commons Collections 3.2 */ public static Map multiValueMap(Map map) { return MultiValueMap.decorate(map); }
/** * Creates a mult-value map backed by the given map which returns * collections of type ArrayList. * * @param map the map to decorate * @return a multi-value map backed by the given map which returns ArrayLists of values. * @see MultiValueMap * @since Commons Collections 3.2 */ public static Map multiValueMap(Map map) { return MultiValueMap.decorate(map); }
/** * Creates a mult-value map backed by the given map which returns * collections of type ArrayList. * * @param map the map to decorate * @return a multi-value map backed by the given map which returns ArrayLists of values. * @see MultiValueMap * @since Commons Collections 3.2 */ public static Map multiValueMap(Map map) { return MultiValueMap.decorate(map); }
/** * Creates a mult-value map backed by the given map which returns * collections of type ArrayList. * * @param map the map to decorate * @return a multi-value map backed by the given map which returns ArrayLists of values. * @see MultiValueMap * @since Commons Collections 3.2 */ public static Map multiValueMap(Map map) { return MultiValueMap.decorate(map); }
/** * Creates a mult-value map backed by the given map which returns * collections of type ArrayList. * * @param map the map to decorate * @return a multi-value map backed by the given map which returns ArrayLists of values. * @see MultiValueMap * @since Commons Collections 3.2 */ public static Map multiValueMap(Map map) { return MultiValueMap.decorate(map); }
/** * Creates a mult-value map backed by the given map which returns * collections of type ArrayList. * * @param map the map to decorate * @return a multi-value map backed by the given map which returns ArrayLists of values. * @see MultiValueMap * @since Commons Collections 3.2 */ public static Map multiValueMap(Map map) { return MultiValueMap.decorate(map); }
/** * Creates a mult-value map backed by the given map which returns * collections of type ArrayList. * * @param map the map to decorate * @return a multi-value map backed by the given map which returns ArrayLists of values. * @see MultiValueMap * @since Commons Collections 3.2 */ public static Map multiValueMap(Map map) { return MultiValueMap.decorate(map); }
/** * Creates a multi-value map backed by the given map which returns * collections created by the specified collection factory. * * @param map the map to decorate * @param collectionFactory a factor which creates collection objects * @return a multi-value map backed by the given map which returns collections * created by the specified collection factory * @see MultiValueMap * @since Commons Collections 3.2 */ public static Map multiValueMap(Map map, Factory collectionFactory) { return MultiValueMap.decorate(map, collectionFactory); }
/** * Creates a multi-value map backed by the given map which returns * collections created by the specified collection factory. * * @param map the map to decorate * @param collectionFactory a factor which creates collection objects * @return a multi-value map backed by the given map which returns collections * created by the specified collection factory * @see MultiValueMap * @since Commons Collections 3.2 */ public static Map multiValueMap(Map map, Factory collectionFactory) { return MultiValueMap.decorate(map, collectionFactory); }
public SmiSymbolMapImpl(Class<T> symbolClass, Map<String, SmiModule> moduleMap) { super(MultiValueMap.decorate(new HashMap(), ArrayList.class)); m_symbolClass = symbolClass; m_moduleMap = moduleMap; }
public StatusMapper() { requiredOldIds = MultiValueMap.decorate(new HashMap(), HashSet.class); idMap = new HashMap(); }
public CustomFieldMapper() { idMap = new HashMap(); issueTypesInUse = MultiValueMap.decorate(new HashMap(), TreeSet.class); issueToCustomFieldMap = MultiValueMap.decorate(new HashMap(), HashSet.class); issueToIssueTypeMap = new HashMap<String, String>(); issueToIssueTypeCache = new HashMap<String, String>(); ignoredCustomFields = new HashSet<String>(); }
public ObjectModelImpl() { singleValueMap = new HashMap(); //FIXME: Not sure if this makes sense //super.map = UnmodifiableMap.decorate(singleValueMap); super.map = singleValueMap; localContexts = new ArrayStack(); multiValueMap = MultiValueMap.decorate(new HashMap(), StackReversedIteration.class); multiValueMapForLocated = MultiValueMap.decorate(new HashMap(), StackReversedIteration.class); }