You do not want to do this with get , as in yourList.get(5).someMethod() ?
The get method will not "retrieve" the returned element, it will only return a copy of the link. Getting + removal is the implementation of remove .
So, if you do not override the get method, it will not modify the list.
Update and clarification:
List<String> list = new ArrayList<String>(); list.add(myObject);
source share