Using the Scala collections (immutable) from Java -


is possible use scala immutable collections (hashmap, list, vector, etc.) java code? realize of method names may end looking "funny" , contain "$".

i have legacy application written in java. cannot convert code @ time, use immutable data structures improve concurrency (multiple reads every write).

yes, need put scala-library.jar in classpath. see this thread example using scala immutable lists in java

as alternative, clojure offers persistent data structures e.g. persistenthashmap come java source code, method names won't odd


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -