| Reuse strategy that will reuse an old item if its model is equal to a model
inside the newModels iterator. Useful when state needs to be kept across
requests for as long as the item is visible within the view.
Notice that the model and not the model object needs to
implement the equals method. Most of the time it is a good idea to forward
the equals call to the object, however if a detachable model is used it is
often enough to compare object ids models point to ( this saves the model
from loading the object).
author: Igor Vaynberg (ivaynberg) |