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!
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!