Are there any methods to do so? I was looking but couldn\'t find any.
Another question: I need these methods so I can filter files. Some are AND filter
AND
Unions and intersections defined only for sets, not lists. As you mentioned.
Check guava library for filters. Also guava provides real intersections and unions
static Sets.SetViewunion(Set extends E> set1, Set extends E> set2) static Sets.SetView intersection(Set set1, Set> set2)