private boolean isContainedIn ( BitSet A , BitSet B ) { boolean result = false ; if ( A . isEmpty ( ) ) { return true ; } BitSet setA = ( BitSet ) A . clone ( ) ; setA . and ( B ) ; if ( setA . equals ( A ) ) { result = true ; } return result ; }
Test if set A is contained in set B .