If the enum is a top level class: com.example.package.EnumClass and
com.example.package.EnumClass/EnumConstant. If the enum is nested in
Foo, com.example.package.Foo$EnumClass and
com.example.package.Foo$EnumClass/EnumConstant.
The enum class can be imported like any other class. If you want a
shorthand for the constants, like foo for EnumClass/FOO, you can do
something like this
(ns quux
(import [com.example.package EnumClass]))
(def foo EnumClass/FOO)
...
(do-something-with foo)
...
(.javaMethod some-object ^String "boo!" (int 42) ^EnumClass foo)
Try IContainer$Type/READ and IContainer$Type/WRITE
Regards,
BG
--
Baishampayan Ghose
b.ghose at gmail.com