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), so I need to filter according to all files and the unite/intersects ArrayLists that holds those files.
Should I use a different data structure to hold the files? Is there anything else that would offer a better runtime?
Vector? That class has been discouraged since Java 1.2.Vectoris for cross-thread interactions, but there are safer data structures for those use cases too. See also this question. Any library still usingVectorin 2016 is very suspect in my opinion.