org.apache.commons.collections.CollectionUtils.filter(subData, new TestPredicate("CLIENT"));
class TestPredicate implements Predicate{
private String accAttribute;
public TestPredicate(String accountAttribute){
this.accAttribute = accountAttribute;
}
public boolean evaluate(Object arg0) {
if (arg0 instanceof IssuerPlacingAndCommissionFeeReportByAc) {
return accAttribute.equals(((IssuerPlacingAndCommissionFeeReportByAc) arg0).getAccountAttribute());
}
return false;
}
}