finbeu
unread,Aug 2, 2011, 9:37:36 AM8/2/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to clo...@googlegroups.com
Hello,
how do I have to use an enum in clojure that is enclosed in an java interface? I decomplied it in IDEA and I got something like that:
package com.api.test;
public interface Foo {
.....
.....
static final enum BarType {
public static final ONE, public static final TWO, public static final THREE, public static final FOUR;
....
....
}
}
How do I have to import and use that in clojure?
I need to call a java method with such an enum but I can't get it to work although I have already done lots of guesswork.
(:import (com.api.test Foo Foo.BarType)) ??????
(let [ test (.theMethod myObject BlaBlaType.ONE) ]) ????
Thanks for your help in advance.
- Finn