Added a method for obtaining the length of an array.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1340 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: DataTool.java,v 1.1 2003/09/25 18:05:50 eric Exp $
|
||||
// $Id: DataTool.java,v 1.2 2003/12/10 20:28:51 mdb Exp $
|
||||
|
||||
package com.samskivert.velocity;
|
||||
|
||||
@@ -28,4 +28,12 @@ public class DataTool
|
||||
{
|
||||
return Array.get(array, index);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the length of the specified array.
|
||||
*/
|
||||
public int length (Object array)
|
||||
{
|
||||
return Array.getLength(array);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user