Merge pull request #46 from mattiasholmqvist/master

Rename Predicate protocol in predicate.clj to Coercions.
This commit is contained in:
Adrian Cole 2011-06-02 08:25:36 -07:00
commit 9ac8ad2b5f
1 changed files with 4 additions and 3 deletions

View File

@ -18,11 +18,12 @@
;
(ns org.jclouds.predicate)
(defprotocol Predicate
"Protocol for making a com.google.common.base.Predicate."
(defprotocol Coercions
"Protocol for coercing between predicate-like things, like
Clojure fns and com.google.common.base.Predicate."
(to-predicate [p]))
(extend-protocol Predicate
(extend-protocol Coercions
clojure.lang.IFn
(to-predicate [p]
(reify com.google.common.base.Predicate