From 4b761c790a3fcabbac16fd94356e3f34a79d0375 Mon Sep 17 00:00:00 2001 From: Mattias Holmqvist Date: Thu, 2 Jun 2011 12:08:00 +0200 Subject: [PATCH] Renamed Predicate protocol to Coercions --- compute/src/main/clojure/org/jclouds/predicate.clj | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/compute/src/main/clojure/org/jclouds/predicate.clj b/compute/src/main/clojure/org/jclouds/predicate.clj index 1a35f88ae4..ae295e5618 100644 --- a/compute/src/main/clojure/org/jclouds/predicate.clj +++ b/compute/src/main/clojure/org/jclouds/predicate.clj @@ -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