Example usage for Java org.apache.commons.collections15 ListUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
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 extends E> list1, final Collection extends E> list2) Tests two lists for value-equality as per the equality contract in java.util.List#equals(java.lang.Object) . |
List | subtract(final List extends E> list1, final List extends E> list2) 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. |