com.liferay.portal.kernel.util
Class ListUtil
java.lang.Object
com.liferay.portal.kernel.util.ListUtil
public class ListUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListUtil
public ListUtil()
copy
public static <E> List<E> copy(List<E> master)
copy
public static <E> void copy(List<E> master,
List<? super E> copy)
distinct
public static void distinct(List<?> list)
distinct
public static <E> void distinct(List<E> list,
Comparator<E> comparator)
fromArray
public static <E> List<E> fromArray(E[] array)
fromCollection
public static <E> List<E> fromCollection(Collection<E> c)
fromEnumeration
public static <E> List<E> fromEnumeration(Enumeration<E> enu)
fromFile
public static List<String> fromFile(File file)
throws IOException
- Throws:
IOException
fromFile
public static List<String> fromFile(String fileName)
throws IOException
- Throws:
IOException
fromString
public static List<String> fromString(String s)
remove
public static <E> boolean remove(List<E> list,
E element)
sort
public static <E> List<E> sort(List<E> list)
sort
public static <E> List<E> sort(List<E> list,
Comparator<? super E> comparator)
subList
public static <E> List<E> subList(List<E> list,
int start,
int end)
toList
public static List<Boolean> toList(boolean[] array)
toList
public static List<Double> toList(double[] array)
toList
public static <E> List<E> toList(E[] array)
toList
public static List<Float> toList(float[] array)
toList
public static List<Integer> toList(int[] array)
toList
public static List<Long> toList(long[] array)
toList
public static List<Short> toList(short[] array)
toString
public static String toString(List<?> list,
String param)
toString
public static String toString(List<?> list,
String param,
String delimiter)