`

org.apache.commons.collections.CollectionUtils.filter

阅读更多
        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;
		}
    }

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics