/** * The <code>purge</code> method is used to purge a match from * the provided position. This also ensures that the active set * has the node removed so that it is no longer relevant. * * @param index the index of the node that is to be removed * * @return returns the node removed from the specified index */ public OutputNode purge(int index) { OutputNode node = remove(index); if(node != null){ active.remove(node); } return node; }
/** * The <code>purge</code> method is used to purge a match from * the provided position. This also ensures that the active set * has the node removed so that it is no longer relevant. * * @param index the index of the node that is to be removed * * @return returns the node removed from the specified index */ public OutputNode purge(int index) { OutputNode node = remove(index); if(node != null){ active.remove(node); } return node; }
/** * The <code>purge</code> method is used to purge a match from * the provided position. This also ensures that the active set * has the node removed so that it is no longer relevant. * * @param index the index of the node that is to be removed * * @return returns the node removed from the specified index */ public OutputNode purge(int index) { OutputNode node = remove(index); if(node != null){ active.remove(node); } return node; }