public interface DisposableMap<K,V>
extends java.util.Map<K,V>
dispose() method which should be called
when the Map is no longer useful, but the underlying EventList is
still referenced and useful. It allows this Map to be garbage collected
before its source EventList.| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Releases the resources consumed by this
DisposableMap so that it
may eventually be garbage collected. |
void dispose()
DisposableMap so that it
may eventually be garbage collected.
A DisposableMap will be garbage collected without a call to
dispose(), but not before its source EventList is garbage
collected. By calling dispose(), you allow the DisposableMap
to be garbage collected before its source EventList. This is
necessary for situations where a DisposableMap is short-lived but
its source EventList is long-lived.
Warning: It is an error
to call any method on a DisposableMap after it has been disposed.
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by buildd at 2016-02-14 5:12