emptyResult = true;
return null;
}
long count = 1;
BlankPolicy blank = iterator.next();
String previousType = blank.getPolicyType().getTitle();
BlankState previousState = blank.getInventoryPolicyState();
while (iterator.hasNext()) {
blank = iterator.next();
if (previousType.equals(blank.getPolicyType().getTitle()) && previousState.equals(blank.getInventoryPolicyState())) {
count++;
} else {
agentPolicies.add(new LightPolicySet("", previousType, MessageBundle.getMessage(previousState.toString()), Long.toString(count)));
count = 1;
previousType = blank.getPolicyType().getTitle();
previousState = blank.getInventoryPolicyState();
}
}
agentPolicies.add(new LightPolicySet("", previousType, MessageBundle.getMessage(previousState.toString()), Long.toString(count)));
return null;