public void addFrequentSet(FrequentItemSet itemSet){
  frequentSets.add(itemSet);
  maximumSetSize=Math.max(itemSet.getNumberOfItems(),maximumSetSize);
}

public void addFrequentSet ( FrequentItemSet itemSet ) { frequentSets . add ( itemSet ) ; maximumSetSize = Math . max ( itemSet . getNumberOfItems ( ) , maximumSetSize ) ; }
adds a frequent item set to this container . conditionalitems and frequentitems are merged .
