|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.appserv.management.util.misc.ListUtil
public final class ListUtil
Method Summary | ||
---|---|---|
static
|
addArray(List<T> list,
T[] array)
Add all items in an array to a list. |
|
static
|
newList(T m1)
Create a new List with one member. |
|
static
|
newList(T m1,
T m2)
Create a new List with two members. |
|
static
|
newList(T m1,
T m2,
T m3)
Create a new List with three members. |
|
static
|
newList(T m1,
T m2,
T m3,
T m4)
Create a new List with four members. |
|
static
|
newList(T m1,
T m2,
T m3,
T m4,
T m5)
Create a new List with four members. |
|
static
|
newListFromArray(T[] items)
|
|
static
|
newListFromCollection(Collection<T> c)
Create a new List from a Collection |
|
static
|
newListFromIterator(Iterator<? extends T> iter)
Create a new List from a Collection |
|
static
|
reverse(List<T> list)
Return a new List in reverse order. |
|
static String[] |
toStringArray(List<?> list)
Convert a List to a String[] |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> void addArray(List<T> list, T[] array)
public static String[] toStringArray(List<?> list)
public static <T> List<T> newListFromCollection(Collection<T> c)
public static <T> List<? extends T> newListFromIterator(Iterator<? extends T> iter)
public static <T> List<T> newList(T m1)
public static <T> List<T> newList(T m1, T m2)
public static <T> List<T> newList(T m1, T m2, T m3)
public static <T> List<T> newList(T m1, T m2, T m3, T m4)
public static <T> List<T> newList(T m1, T m2, T m3, T m4, T m5)
public static <T> List<T> newListFromArray(T[] items)
public static <T> List<T> reverse(List<T> list)
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.