|
|||||||||
| 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.
| Constructor Summary | |
|---|---|
MapBuilder()
|
|
| Method Summary | |
|---|---|
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. |
java.util.HashMap |
toHashMap()
Return a set build from the collection. |
java.util.LinkedHashMap |
toLinkedHashMap()
Return a list build from the collection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapBuilder()
| Method Detail |
|---|
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.HashMap toHashMap()
public java.util.LinkedHashMap toLinkedHashMap()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||