|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.common.util.CollectionBuilder<C,V>
public class CollectionBuilder<C extends java.util.Collection<V>,V>
An helper to build collection of object in a simple manner.
Method Summary | ||
---|---|---|
CollectionBuilder<C,V> |
add(V o)
Add the object to the collection. |
|
CollectionBuilder<C,V> |
addAll(java.util.Collection<V> all)
Add all the objects to the collection. |
|
static
|
arrayList()
|
|
static
|
arrayList(V v)
|
|
static
|
create(C collection)
|
|
C |
get()
|
|
static
|
hashSet()
|
|
static
|
hashSet(V v)
|
|
static
|
linkedList()
|
|
static
|
linkedList(V v)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <C extends java.util.Collection<V>,V> CollectionBuilder<C,V> create(C collection)
public static <V> CollectionBuilder<java.util.ArrayList<V>,V> arrayList()
public static <V> CollectionBuilder<java.util.ArrayList<V>,V> arrayList(V v)
public static <V> CollectionBuilder<java.util.LinkedList<V>,V> linkedList()
public static <V> CollectionBuilder<java.util.LinkedList<V>,V> linkedList(V v)
public static <V> CollectionBuilder<java.util.HashSet<V>,V> hashSet()
public static <V> CollectionBuilder<java.util.HashSet<V>,V> hashSet(V v)
public CollectionBuilder<C,V> add(V o)
o
- the object to add
public CollectionBuilder<C,V> addAll(java.util.Collection<V> all)
all
- the objects to add
public C get()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |