public static < T > boolean isSuperset ( Set < T > setA , Set < T > setB ) { return setA . containsAll ( setB ) ; }
This method returns true if set A is a superset of set B i . e . it answers the question if A contains all items from B