We'd find it very useful to have an AddListener
to complement RemovalListener
in Google Guava.
Is there a suitable alternative to an AddListener
that would complement RemovalListener
?
We'd find it very useful to have an AddListener
to complement RemovalListener
in Google Guava.
Is there a suitable alternative to an AddListener
that would complement RemovalListener
?
You can provide that yourself - just pass your custom listener to your computing Function
, and whenever you compute a value, notify the listener.
If you are using asMap().put(..)
, then you'd have to wrap the whole thing in in your custom classes that delegate to the originals but also invoke the addition listener.