@Override public void dispose() { for (MarketDataViewItem item : mItemMap.values()) { item.dispose(); } mItemMap = null; mItems = null; if (mClipboard != null) { mClipboard.dispose(); } super.dispose(); }
private void remove(final MarketDataViewItem item) { mItemMap.remove(item.getEquity()); mItems.remove(item); item.dispose(); }