Hello,
Here is another code performing the same task, this is almost similar to the above code but I think this is more effective.
Code:
Public class MyClass{
Public void monTraitement(String name, Object o){
/ / Here I capture the method will "name" applied to the object "o"
}
}
Public class delset implements Set
{
/ / The set
private Set set;
/ / Play events
private MyClass lst;
Public delset(Set set)
{this.set = Set;
lst = new MyClass();
}
Public boolean add(Object e) {
myClass.mntr("add"e);
return sets.add(e);
}
...
Bookmarks