ClojureDocs

导航

命名空间

definterface

clojure.core

自 1.2 起提供 (源代码)
  • (definterface name & sigs)
Creates a new Java interface with the given name and method sigs.
The method return types and parameter types may be specified with type hints,
defaulting to Object if omitted.
 (definterface MyInterface
  (^int method1 [x])
  (^Bar method2 [^Baz b ^Quux q]))