public boolean contains ( Collection < Data > dataSet ) { for ( Data data : dataSet ) { boolean contains = false ; for ( QueueItem item : getItemQueue ( ) ) { if ( item . getData ( ) != null && item . getData ( ) . equals ( data ) ) { contains = true ; break ; } } if ( ! contains ) { return false ; } } return true ; }
Checks if the queue contains all items in the dataSet . This method does not trigger store load .