Package com.liferay.portal.kernel.util
Class ListUtil
Object
com.liferay.portal.kernel.util.ListUtil
- Author:
- Brian Wing Shun Chan, Shuyang Zhou
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <E> List<E>static <E> List<E>static <E> voidstatic <E> intstatic voidstatic <E> voiddistinct(List<? extends E> list, Comparator<E> comparator) static <E> booleanstatic <T> List<T>static <T> List<T>static <T> List<T>filter(List<T> list, BiFunction<Integer, Integer, List<T>> listBiFunction, Supplier<Integer> countSupplier, Predicate<T> predicate, int start, int end) fromArray(boolean[] array) fromArray(char[] array) fromArray(double[] array) fromArray(float[] array) fromArray(int[] array) fromArray(long[] array) fromArray(short[] array) static <E> List<E>fromArray(E... array) static <E> List<E>fromCollection(Collection<? extends E> c) static <E> List<E>fromEnumeration(Enumeration<? extends E> enumeration) static <E> List<E>fromMapKeys(Map<? extends E, ?> map) static <E> List<E>fromMapValues(Map<?, ? extends E> map) fromString(String s) fromString(String s, String delimiter) static booleanstatic booleanisNotEmpty(List<?> list) static <E> voidisNotEmptyForEach(List<? extends E> list, Consumer<? super E> consumer) static booleanstatic booleanstatic booleanisUnmodifiableList(List<?> list) static <E> List<E>static <E> Iterator<E>reverseIterator(List<E> list) static <E> List<E>static <E> List<E>sort(List<E> list, Comparator<? super E> comparator) static <E> List<E>static <T,A> A[] static <E> List<E>toList(E value) static <T,A> List<A> static <T,R> List<R> static <T,V extends T>
List<T>static <T> long[]toLongArray(List<? extends T> list, Accessor<T, Long> accessor) static <T> long[]toLongArray(List<? extends T> list, ToLongFunction<T> toLongFunction) static Stringstatic Stringstatic <T,A> String static <T,A> String static <T> List<T>
-
Constructor Details
-
ListUtil
public ListUtil()
-
-
Method Details
-
concat
-
copy
-
copy
-
count
-
distinct
-
distinct
-
exists
-
filter
-
filter
-
filter
-
fromArray
-
fromArray
-
fromArray
-
fromArray
-
fromArray
-
fromArray
-
fromArray
-
fromArray
-
fromCollection
-
fromEnumeration
-
fromFile
- Throws:
IOException
-
fromFile
- Throws:
IOException
-
fromMapKeys
-
fromMapValues
-
fromString
-
fromString
-
isEmpty
-
isNotEmpty
-
isNotEmptyForEach
-
isNotNull
-
isNull
-
isUnmodifiableList
-
remove
-
reverseIterator
-
sort
-
sort
-
subList
-
toArray
-
toList
-
toList
-
toList
-
toList
-
toLongArray
-
toLongArray
-
toString
- See Also:
-
toString
-
toString
- See Also:
-
toString
-
unique
-