Date: 2004-11-12T03:21:19
Editor: ShinobuKawai <[EMAIL PROTECTED]>
Wiki: Jakarta-Velocity Wiki
Page: ArrayTool
URL: http://wiki.apache.org/jakarta-velocity/ArrayTool
Javadoc comments.
Change Log:
------------------------------------------------------------------------------
@@ -107,7 +107,7 @@
* <li><code>array</code> doesn't have an <code>index</code>th
value.</li>
* </ul>
* @param array the array object.
- * @param index the index of the element to get.
+ * @param index the index of the array to get.
* @return the specified element of the array.
*/
public Object get(Object array, int index)
@@ -128,6 +128,18 @@
}
}
+ /**
+ * Sets the specified element of an array.
+ * It will return null under the following conditions:
+ * <ul>
+ * <li><code>array</code> is null.</li>
+ * <li><code>array</code> is not an array.</li>
+ * <li><code>array</code> doesn't have an <code>index</code>th
value.</li>
+ * </ul>
+ * @param array the array object.
+ * @param index the index of the array to set.
+ * @param value the element to set.
+ */
public Object set(Object array, int index, Object value)
{
if (!this.isArray(array))
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]