Intersection and union of ArrayLists in Java

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 filters and some are OR filters (like in set theory), …