commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r946897 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Range.java
Date Fri, 21 May 2010 06:29:43 GMT
Author: bayard
Date: Fri May 21 06:29:43 2010
New Revision: 946897

URL: http://svn.apache.org/viewvc?rev=946897&view=rev
Log:
Adding note on requiring Comparator for non-Comparable. LANG-620

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Range.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Range.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Range.java?rev=946897&r1=946896&r2=946897&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Range.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Range.java Fri May 21
06:29:43 2010
@@ -21,6 +21,8 @@ import java.util.Comparator;
 
 /**
  * <p><code>Range</code> represents an immutable range of numbers of the
same type.</p>
+ * <p>The objects need to either be implementations of <code>java.lang.Comparable</code>
+ * or you need to supply a <code>java.util.Comparator</code>. </p>
  * 
  * <p>#ThreadSafe#</p>
  * @author Apache Software Foundation



Mime
View raw message