Is it possible to re-index a Map collection after removing an item ?
I am iterating through a database field to find the first match to a Map item, then removing the map item. It appears that leaves a hole in the map collection. Keys then are 0,2,3,4 etc. with no number 1.
Reindexing to fill the hole would simplify my code. Can that be done?
I am iterating through a database field to find the first match to a Map item, then removing the map item. It appears that leaves a hole in the map collection. Keys then are 0,2,3,4 etc. with no number 1.
Reindexing to fill the hole would simplify my code. Can that be done?