Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method to allow replacing an object #88

Open
benbeadle opened this issue Dec 21, 2014 · 2 comments
Open

Add method to allow replacing an object #88

benbeadle opened this issue Dec 21, 2014 · 2 comments

Comments

@benbeadle
Copy link

It'd be nice if there was a replaceObject method:

public void replaceObject(final int index, final Object object)

to allow updating an object in the list.

My initial solution was to loop through the objects, removing then re-adding all except the one I want to update where I switch in the new object. The problem is that if the user has already started their next query, the objects get added after the query and the user must remove all tokens to clear the query.

Thanks, and great work!

@CapitanRedBeard
Copy link

Is this implemented @mgod ?

@mgod
Copy link
Contributor

mgod commented Mar 4, 2015

I haven't added this. I'm not sure if anyone in a fork has this tucked away somewhere. I haven't been able to come up with a simple method to add this functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants