Browse files

Priority-map: Further modifications to equals and equiv methods

  • Loading branch information...
Engelberg committed May 21, 2011
1 parent 9fe43db commit 7bad658b80f5d948022d6b8ae0cc304eeccfa11b
Showing with 2 additions and 2 deletions.
  1. +2 −2 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))

0 comments on commit 7bad658

Please sign in to comment.