Why doesn't Java 8's Predicate extend Function

前端 未结 4 1014
慢半拍i
慢半拍i 2021-02-03 19:14

If I wrote the Predicate interface, I\'d want to encode in the interface the fact that it\'s just a function that returns a primitive boolean, like thi

4条回答
提交回复
热议问题