有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!


共 (1) 个答案

  1. # 1 楼答案

    你可以简单地reify一个接口

    下面是一个例子

    (def consumer (reify java.util.function.Consumer
                    (accept [this t]
                      ; here the impl 
                      )))