你可以简单地具体化的接口。
这是一个例子
(def consumer (reify java.util.function.Consumer
(accept [this t]
; here the impl
)))
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
936 次 |
| 最近记录: |