Apache’s commons.collections library has a CollectionUtils class that provides easy-to-use methods for Collection manipulation/checking, such as intersection, difference, and union.
The org.apache.commons.collections.CollectionUtils API docs are here.
More Related Contents:
- What is the difference between "collection" ,"Collection" and "Collections"? [duplicate]
- Difference between
- Efficiency of Java “Double Brace Initialization”?
- Properly removing an Integer from a List
- How do I convert a Map to List in Java?
- Randomly select an item from a list
- Define a fixed-size list in Java
- What is the difference between an ordered and a sorted collection?
- Maximum size of HashSet, Vector, LinkedList
- Java – How to create new Entry (key, value)
- Why does Collections.sort use Mergesort but Arrays.sort does not?
- How to shuffle an ArrayList [duplicate]
- How can I generate a list or array of sequential integers in Java?
- What is a WeakHashMap and when to use it? [duplicate]
- JDK9 randomization on immutable sets and maps
- In what situations is the CopyOnWriteArrayList suitable? [duplicate]
- best way to pick a random subset from a collection?
- Is it possible in java make something like Comparator but for implementing custom equals() and hashCode()
- ArrayList Vs LinkedList
- Classical set operations for java.util.Collection
- Java Collections and Garbage Collector
- Is there a way to check if two Collections contain the same elements, independent of order?
- Getting object with max date property from list of objects Java 8
- When should I return the Interface and when the concrete class?
- Is there a testsuite for Java custom collections implementation?
- Storing different types of elements in a List in Java
- Are they any decent on-disk implementations of Java’s Map?
- How to sort Arraylist of objects
- Hashmap implementation to count the occurrences of each character
- Perform operation on n random distinct elements from Collection using Streams API