|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.common.util.CollectionBuilder
An helper to build collection of object in a simple manner.
Constructor Summary | |
CollectionBuilder()
|
Method Summary | |
CollectionBuilder |
add(java.lang.Object o)
Add the object to the collection. |
CollectionBuilder |
addAll(java.util.Collection all)
Add all the objects to the collection. |
java.util.ArrayList |
toArrayList()
Return a list build from the collection. |
java.util.HashSet |
toHashSet()
Return a set build from the collection. |
java.util.LinkedList |
toLinkedList()
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 CollectionBuilder()
Method Detail |
public CollectionBuilder add(java.lang.Object o)
o
- the object to add
public CollectionBuilder addAll(java.util.Collection all)
all
- the objects to add
public java.util.HashSet toHashSet()
public java.util.ArrayList toArrayList()
public java.util.LinkedList toLinkedList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |