-
Notifications
You must be signed in to change notification settings - Fork 384
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
Labels
Comments
Is this implemented @mgod ? |
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
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!
The text was updated successfully, but these errors were encountered: