public static boolean containsAll ( Set < String > target , Set < String > members ) { target = new HashSet < String > ( target ) ; target . retainAll ( members ) ; return target . size ( ) == members . size ( ) ; }
Compare 2 sets and check that one contains all members of the other .