|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.common.util.MapBuilder
public class MapBuilder
An helper to build collection of object in a simple manner.
Method Summary | |
---|---|
static MapBuilder |
create(java.util.Map map)
|
java.util.Map |
get()
|
static MapBuilder |
hashMap()
Creates a new instance. |
static MapBuilder |
linkedHashMap()
Creates a new instance. |
MapBuilder |
put(java.lang.Object key,
java.lang.Object value)
Add the object to the collection. |
MapBuilder |
putAll(java.util.Map all)
Add all the objects to the collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static MapBuilder hashMap()
public static MapBuilder linkedHashMap()
public static MapBuilder create(java.util.Map map)
public MapBuilder put(java.lang.Object key, java.lang.Object value)
key
- the keyvalue
- the value
public MapBuilder putAll(java.util.Map all)
all
- the entries to add
public java.util.Map get()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |