Example usage for Java org.apache.commons.collections4 ListUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
List | defaultIfNull(final List Returns either the passed in list, or if the list is null , the value of defaultList . |
List | emptyIfNull(final List Returns an immutable empty list if the argument is null , or the argument itself otherwise. |
int | hashCodeForList(final Collection> list) Generates a hash code using the algorithm specified in java.util.List#hashCode() . |
int | indexOf(final List Finds the first index in the given List which matches the given predicate. |
List | intersection(final List extends E> list1, final List extends E> list2) Returns a new list containing all elements that are contained in both given lists. |
boolean | isEqualList(final Collection> list1, final Collection> list2) Tests two lists for value-equality as per the equality contract in java.util.List#equals(java.lang.Object) . |
List | longestCommonSubsequence(final List Returns the longest common subsequence (LCS) of two sequences (lists). |
String | longestCommonSubsequence(final CharSequence a, final CharSequence b) Returns the longest common subsequence (LCS) of two CharSequence objects. |
List
| partition(final List Returns consecutive List#subList(int,int) sublists of a list, each of the same size (the final list may be smaller). |
List | removeAll(final Collection Removes the elements in remove from collection . |
List | select(final Collection extends E> inputCollection, final Predicate super E> predicate) Selects all elements from input collection which match the given predicate into an output list. |
List | subtract(final List Subtracts all elements in the second list from the first list, placing the results in a new list. |
List | sum(final List extends E> list1, final List extends E> list2) Returns the sum of the given lists. |
List | union(final List extends E> list1, final List extends E> list2) Returns a new list containing the second list appended to the first list. |
List | unmodifiableList(final List extends E> list) Returns an unmodifiable list backed by the given list. |