Iterator<Results> itr = obj.getResults().iterator();
HashSet<Results> hs = new HashSet<Results>();
//This loop generates a list of products without any duplicates.
while(itr.hasNext()){
Results temp = itr.next();
if(hs.contains(temp)){
System.out.println("Has...");
}
else {
list.add(temp);