//filter 1
Predicate<Fee> isTransBuy = e -> e.getTransactionType() == "BUY";
//filter2
//filter 1
Predicate<Fee> isTransSell = e -> e.getTransactionType == "SELL";
InputFee.stream().filter(e -> e.getTransactionDate() >1
&& isTransBuy && isTransSell
).collect(Collectors.toList());Add a code snippet to your website: www.paste.org