I've a list of wrapper objectsin my controller for which I need to perform some operation(say doLogic()). I want to use the method similar to calling sort method.
listOfWrappers.doLogic();
//similar to sort
listOfWrappers.sort();
As per my understanding, I need to create a public interface like myInterface
and my myWrapper
class will have to implement the interface.
What is the next step? How exactly do I get it to work?
Thanks in Advance!