阅读背景:

允许从列表界面中删除调用,但不从实现中删除项目

来源:互联网 

I created a list implementation to wrap calls to a database and cache the return objects. With this implementation, you can iterate over the list and perform most operations on the list, and the implementation will go to the database when needed to get the items requested. However i am struggling to figure out how i can implement the remove method. I can't actually remove the element from the database. However if a user removed element 0, when they call get(0) afterwards, my implementation needs to return element 1. Does anyone have experience in this area and could help me out with this?I created a list implementation to wrap calls t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: