mirror of https://github.com/apache/jclouds.git
Merge pull request #46 from mattiasholmqvist/master
Rename Predicate protocol in predicate.clj to Coercions.
This commit is contained in:
commit
9ac8ad2b5f
|
@ -18,11 +18,12 @@
|
||||||
;
|
;
|
||||||
(ns org.jclouds.predicate)
|
(ns org.jclouds.predicate)
|
||||||
|
|
||||||
(defprotocol Predicate
|
(defprotocol Coercions
|
||||||
"Protocol for making a com.google.common.base.Predicate."
|
"Protocol for coercing between predicate-like things, like
|
||||||
|
Clojure fns and com.google.common.base.Predicate."
|
||||||
(to-predicate [p]))
|
(to-predicate [p]))
|
||||||
|
|
||||||
(extend-protocol Predicate
|
(extend-protocol Coercions
|
||||||
clojure.lang.IFn
|
clojure.lang.IFn
|
||||||
(to-predicate [p]
|
(to-predicate [p]
|
||||||
(reify com.google.common.base.Predicate
|
(reify com.google.common.base.Predicate
|
||||||
|
|
Loading…
Reference in New Issue