/** * 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)); }
/** * 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()); }
/** * 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()); }
/** {@inheritDoc} */ @Override public boolean removeAll(Collection<?> c) { return matrix.removeAll(convert(c).matrix); }