Author: joshcanfield
Date: Wed Jun 29 07:18:00 2011
New Revision: 1140983

URL: http://svn.apache.org/viewvc?rev=1140983&view=rev
Log:
Added remove(int index) to JSONArray

Modified:
    
tapestry/tapestry5/trunk/tapestry-json/src/main/java/org/apache/tapestry5/json/JSONArray.java

Modified: 
tapestry/tapestry5/trunk/tapestry-json/src/main/java/org/apache/tapestry5/json/JSONArray.java
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-json/src/main/java/org/apache/tapestry5/json/JSONArray.java?rev=1140983&r1=1140982&r2=1140983&view=diff
==============================================================================
--- 
tapestry/tapestry5/trunk/tapestry-json/src/main/java/org/apache/tapestry5/json/JSONArray.java
 (original)
+++ 
tapestry/tapestry5/trunk/tapestry-json/src/main/java/org/apache/tapestry5/json/JSONArray.java
 Wed Jun 29 07:18:00 2011
@@ -174,6 +174,20 @@ public final class JSONArray extends JSO
     }
 
     /**
+     * Remove the object associated with the index.
+     *
+     * @param index
+     *            The index must be between 0 and length() - 1.
+     * @return An object removed.
+     * @throws RuntimeException
+     *             If there is no value for the index.
+     */
+    public Object remove(int index)
+    {
+        return list.remove(index);
+    }
+
+    /**
      * Get the boolean value associated with an index. The string values 
"true" and "false" are converted to boolean.
      * 
      * @param index


Reply via email to