public static < T > Set < T > intersection ( Collection < T > parentCollection , Collection < T > removeFromCollection ) { Set < T > results = new HashSet <> ( parentCollection ) ; results . retainAll ( removeFromCollection ) ; return results ; }
Set specific operations