From 7bad658b80f5d948022d6b8ae0cc304eeccfa11b Mon Sep 17 00:00:00 2001 From: Mark Engelberg Date: Fri, 20 May 2011 21:35:06 -0700 Subject: Priority-map: Further modifications to equals and equiv methods --- .../priority-map/src/main/clojure/clojure/contrib/priority_map.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/priority-map/src/main/clojure/clojure/contrib/priority_map.clj b/modules/priority-map/src/main/clojure/clojure/contrib/priority_map.clj index 158dc5fe..fb1b67b1 100644 --- a/modules/priority-map/src/main/clojure/clojure/contrib/priority_map.clj +++ b/modules/priority-map/src/main/clojure/clojure/contrib/priority_map.clj @@ -209,9 +209,9 @@ to Clojure's assortment of built-in maps (hash-map and sorted-map). ; Like sorted maps, priority maps are equal to other maps provided ; their key-value pairs are the same. - (equiv [this o] (= item->priority o)) + (equiv [this o] (.equiv item->priority o)) (hashCode [this] (.hashCode item->priority)) - (equals [this o] (.mapEquals item->priority o)) + (equals [this o] (.equals item->priority o)) ;containsKey implements (contains? pm k) behavior (containsKey [this item] (contains? item->priority item)) -- cgit v1.2.3-18-g5258