Add equals() function to the ThumbItem object
Iterate over the result list with a foreach loop