Paste
Pasted as Java by sargamdhamija ( 6 years ago )
//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());
Revise this Paste