public boolean containsAll ( Collection < ? > c ) { int n = c . size ( ) ; final Iterator < ? > i = c . iterator ( ) ; while ( n -- != 0 ) if ( ! contains ( i . next ( ) ) ) return false ; return true ; }
Checks whether this collection contains all elements from the given collection .