mirror of https://github.com/apache/jclouds.git
Renamed Predicate protocol to Coercions
This commit is contained in:
parent
8d317d67b5
commit
4b761c790a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue