/** * Releases the resources consumed by this {@link CalculationCategoryDataset} * so that it may eventually be garbage collected. * * <p>A {@link CalculationCategoryDataset} will be garbage collected without * a call to {@link #dispose()}, but not before its source {@link Calculation}s * are all garbage collected. By calling {@link #dispose()}, you allow the * {@link CalculationCategoryDataset} to be garbage collected before its * source {@link Calculation}s. This is necessary for situations where a * {@link CalculationCategoryDataset} is short-lived but its source * {@link Calculation}s are long-lived. * * <p><strong><font color="#FF0000">Warning:</font></strong> It is an error * to call any method on an {@link CalculationCategoryDataset} after it has * been disposed. */ public void dispose() { calculations.removeListEventListener(this); calculations.dispose(); }
/** * Releases the resources consumed by this {@link CalculationCategoryDataset} * so that it may eventually be garbage collected. * * <p>A {@link CalculationCategoryDataset} will be garbage collected without * a call to {@link #dispose()}, but not before its source {@link Calculation}s * are all garbage collected. By calling {@link #dispose()}, you allow the * {@link CalculationCategoryDataset} to be garbage collected before its * source {@link Calculation}s. This is necessary for situations where a * {@link CalculationCategoryDataset} is short-lived but its source * {@link Calculation}s are long-lived. * * <p><strong><font color="#FF0000">Warning:</font></strong> It is an error * to call any method on an {@link CalculationCategoryDataset} after it has * been disposed. */ public void dispose() { calculations.removeListEventListener(this); calculations.dispose(); }
/** * Releases the resources consumed by this {@link CalculationCategoryDataset} * so that it may eventually be garbage collected. * * <p>A {@link CalculationCategoryDataset} will be garbage collected without * a call to {@link #dispose()}, but not before its source {@link Calculation}s * are all garbage collected. By calling {@link #dispose()}, you allow the * {@link CalculationCategoryDataset} to be garbage collected before its * source {@link Calculation}s. This is necessary for situations where a * {@link CalculationCategoryDataset} is short-lived but its source * {@link Calculation}s are long-lived. * * <p><strong><font color="#FF0000">Warning:</font></strong> It is an error * to call any method on an {@link CalculationCategoryDataset} after it has * been disposed. */ public void dispose() { calculations.removeListEventListener(this); calculations.dispose(); }