>Is there any way to know when number of items is changed in Collection class?
>
>What I need is some event in that class which will trigger every time new item is added or removed so I could put some code there.
AFAIK, there's no other way to add an item but to use .add() method. You can just subclass and add your code to this method. Don't forget a dodefault(...) :).