I am losing the way I create a Java list in Clojure. I want to create a Java enumeration that uses the Java interface, and then pass it to a Java method, all in Clojure. I want to do this to work with the neo4j graph library (I don’t want to use some kind of pre-built interface, I want to write my own interaction code).
I searched on the Internet, and it looks like I can use the proxy method, but I can’t make it work for life. Here's the equivalent Java code I need to write to Clojure:
private static enum RelTypes implements RelationshipType { KNOWS }
And here is my hit at him (this is not correct :():
(proxy [org.neo4j.graphdb.RelationshipType] [] (KNOWS))
I am also wondering if there is a good website that documents such things that I am missing. I know about Clojure docs on the Clojure website, which is very useful, but, for example, I can’t always find what I need. Maybe I need a good reference?
source share