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