diff --git a/projects/samskivert/src/java/com/samskivert/velocity/DataTool.java b/projects/samskivert/src/java/com/samskivert/velocity/DataTool.java index 7c104df2..0346ade7 100644 --- a/projects/samskivert/src/java/com/samskivert/velocity/DataTool.java +++ b/projects/samskivert/src/java/com/samskivert/velocity/DataTool.java @@ -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); + } }