[
https://issues.apache.org/jira/browse/COLLECTIONS-467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14577869#comment-14577869
]
Thomas Neidhart commented on COLLECTIONS-467:
---------------------------------------------
Javafx has ObservableCollections which provide a listener interface for
Map/Set/List instances:
https://docs.oracle.com/javafx/2/api/index.html?javafx/collections/ListChangeListener.Change.html
looks quite interesting, and could be adapter for collections.
> LRUMap remove callback
> ----------------------
>
> Key: COLLECTIONS-467
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-467
> Project: Commons Collections
> Issue Type: New Feature
> Affects Versions: 3.2
> Reporter: l0co
> Priority: Minor
> Fix For: 4.x
>
>
> If you use LRUMap with objects that require doing some disposal when they are
> dropped (eg. close()) and you hold these objects only in LRUMap, you cannot
> do it with current implementation. I propose to add onRemove() and onAdd()
> methods to the implementation, so that you can create anonymous inherited
> class and be able to react to these events.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)