/** * Recursively invalidates this blip and its replies. */ void destroy() { for (WaveletBasedConversationThread thread : CollectionUtils.valueList(replies)) { thread.destroy(); } invalidate(); listeners.clear(); }
/** * Destroys this conversation and detaches listeners. The conversation may * still be inspected but may not be mutated and will not generate any further * events. */ void destroy() { checkIsUsable(); wavelet.removeListener(waveletListener); manifest.removeListener(manifestListener); listeners.clear(); anchorListeners.clear(); rootThread.destroy(); isUsable = false; }