velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbris...@apache.org
Subject svn commit: r932578 - /velocity/tools/trunk/src/main/java/org/apache/velocity/tools/generic/ConversionTool.java
Date Fri, 09 Apr 2010 20:24:35 GMT
Author: cbrisson
Date: Fri Apr  9 20:24:34 2010
New Revision: 932578

URL: http://svn.apache.org/viewvc?rev=932578&view=rev
Log:
add .toIntegers() as a synonym for .toInts() for naming homogeneity

Modified:
    velocity/tools/trunk/src/main/java/org/apache/velocity/tools/generic/ConversionTool.java

Modified: velocity/tools/trunk/src/main/java/org/apache/velocity/tools/generic/ConversionTool.java
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/src/main/java/org/apache/velocity/tools/generic/ConversionTool.java?rev=932578&r1=932577&r2=932578&view=diff
==============================================================================
--- velocity/tools/trunk/src/main/java/org/apache/velocity/tools/generic/ConversionTool.java
(original)
+++ velocity/tools/trunk/src/main/java/org/apache/velocity/tools/generic/ConversionTool.java
Fri Apr  9 20:24:34 2010
@@ -467,6 +467,16 @@ public class ConversionTool extends Loca
 
     /**
      * @param value the value to be converted
+     * @return an array of int values derived from the specified value,
+     *         or <code>null</code>.
+     */
+    public int[] toIntegers(Object value)
+    {
+      return toInts(value);
+    }
+
+    /**
+     * @param value the value to be converted
      * @return an array of double values derived from the specified value,
      *         or <code>null</code>.
      */



Mime
View raw message