Beispiel #1
0
  /**
   * Function to swap two itemsets.
   *
   * @param i The first itemset.
   * @param j The second itemset.
   */
  private void swap(int i, int j) {
    Object help = itemsets.elementAt(i);

    itemsets.insertElementAt(itemsets.elementAt(j), i);
    itemsets.removeElementAt(i + 1);
    itemsets.insertElementAt(help, j);
    itemsets.removeElementAt(j + 1);
  }
Beispiel #2
0
 /**
  * Function to remove an itemset at the given position.
  *
  * @param index The index of the itemset to be deleted.
  */
 public final void delete(int index) {
   itemsets.removeElementAt(index);
 }