Please consider the following snippet:
public interface MyInterface { public int getId(); } public class MyPojo implements MyInterface { private int i
You should be doing:
public ArrayList getMyInterfaces() { ArrayList myPojos = new ArrayList(0); myPojos.add(new MyPojo(0)); myPojos.add(new MyPojo(1)); return myPojos; }