Esempio n. 1
0
 /**
  * Checks if the pairs obtained from the Cartesian product of transactions and items are contained
  *
  * @param trans the transaction
  * @param items collection of items
  * @return <code>true</code> if the pairs set set has been changed
  */
 public boolean containsAll(T trans, Collection<I> items) {
   if (trans == null || items == null || items.isEmpty()) return true;
   if (isEmpty()) return false;
   return matrix.containsAll(transactionToIndex(trans), allItems.convert(items).indices());
 }
Esempio n. 2
0
 /**
  * Checks if the pairs obtained from the Cartesian product of transactions and items are contained
  *
  * @param trans collection of transactions
  * @param item the item
  * @return <code>true</code> if the pairs set set has been changed
  */
 public boolean containsAll(Collection<T> trans, I item) {
   if (trans == null || trans.isEmpty() || item == null) return true;
   if (isEmpty()) return false;
   return matrix.containsAll(allTransactions.convert(trans).indices(), itemToIndex(item));
 }
Esempio n. 3
0
 /** {@inheritDoc} */
 @Override
 public boolean containsAll(Collection<?> c) {
   return matrix.containsAll(convert(c).matrix);
 }