From 85d065031b8dbaeb0ecf359ec650645aafe58853 Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Fri, 21 May 2010 06:29:43 +0000 Subject: [PATCH] Adding note on requiring Comparator for non-Comparable. LANG-620 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@946897 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/lang3/Range.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/apache/commons/lang3/Range.java b/src/main/java/org/apache/commons/lang3/Range.java index ce129d4a5..0a5dd7f83 100644 --- a/src/main/java/org/apache/commons/lang3/Range.java +++ b/src/main/java/org/apache/commons/lang3/Range.java @@ -21,6 +21,8 @@ import java.util.Comparator; /** *

Range represents an immutable range of numbers of the same type.

+ *

The objects need to either be implementations of java.lang.Comparable + * or you need to supply a java.util.Comparator.

* *

#ThreadSafe#

* @author Apache Software Foundation