Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

generic.comparison: implement default inequalities on java.lang.Numbe…

…r rather than java.lang.Object
  • Loading branch information...
commit 4fe738db417cbea76450e04223fdcc9ed0b2c053 1 parent 061f3d5
@khinsen khinsen authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/main/clojure/clojure/contrib/generic/comparison.clj
View
10 src/main/clojure/clojure/contrib/generic/comparison.clj
@@ -1,7 +1,7 @@
;; Generic interfaces for comparison operations
;; by Konrad Hinsen
-;; last updated March 4, 2010
+;; last updated May 25, 2010
;; Copyright (c) Konrad Hinsen, 2009-2010. All rights reserved. The use
;; and distribution terms for this software are covered by the Eclipse
@@ -178,19 +178,19 @@
[x y]
(clojure.core/= x y))
-(defmethod > [Object Object]
+(defmethod > [java.lang.Number java.lang.Number]
[x y]
(clojure.core/> x y))
-(defmethod < [Object Object]
+(defmethod < [java.lang.Number java.lang.Number]
[x y]
(clojure.core/< x y))
-(defmethod >= [Object Object]
+(defmethod >= [java.lang.Number java.lang.Number]
[x y]
(clojure.core/>= x y))
-(defmethod <= [Object Object]
+(defmethod <= [java.lang.Number java.lang.Number]
[x y]
(clojure.core/<= x y))
Please sign in to comment.
Something went wrong with that request. Please try again.