co.paralleluniverse.pulsar.interop

Quasar-Pulsar interop helpers

->ListMultimap

(->ListMultimap m)
Returns a Guave ListMultimap view of a Clojure collection.
The Clojure representation of a list-multimap is a map from keys to a vetor/list of values.

->Multimap

(->Multimap m)
Returns a Guave Multimap view of a Clojure collection.
The Clojure representation of a multimap is a map from keys to a set/vetor/list of values.

->Multiset

(->Multiset m)
Returns a Guava Multiset view of a Clojure collection.
The Clojure representation of a multiset is a map from the values to the count of their
occurrence in the multiset.

->SetMultimap

(->SetMultimap m)
Returns a Guave SetMultimap view of a Clojure collection.
The Clojure representation of a set-multimap is a map from keys to a set of values.

bean

added in 1.0

(bean x)
Takes a Java object and returns a read-only implementation of the
map abstraction based upon its JavaBean properties.

camel-to-dash

(camel-to-dash s)

case+

macro

(case+ value & clauses)
Same as case, but evaluates dispatch values, needed for referring to
class and def'ed constants as well as java.util.Enum instances.

enum->keyword

macro

(enum->keyword enum-type x)

java-name->clojure

(java-name->clojure s)

keyword->enum

macro

(keyword->enum enum-type x)

underscore-to-dash

(underscore-to-dash s)