On 01/22/2014 12:30 PM, Richard Bair wrote:
The default implementation (for Observable) would look like this:

public default void ensureListener(InvalidationListener listener) {

subclasses might do something more effective. The same would apply to
ObservableValue and ChangeListener and Observable[List|Set|Map] and
Well this would destroy the order! I expect listeners to be called in
the correct order not?
That’s a good point :-(

Actually even when you would rely on the order, in situations when you call ensureListener, you don't really know if the listener is already there. So you might really expect that listener would be added at this point as the last. It's just that will always be the outcome if the default implementation is used.


Reply via email to