|
From: <cg...@us...> - 2006-07-06 13:37:36
|
Revision: 929 Author: cgruber Date: 2006-07-06 06:37:29 -0700 (Thu, 06 Jul 2006) ViewCVS: http://svn.sourceforge.net/wotonomy/?rev=929&view=rev Log Message: ----------- Forgot to check-in the array implementation updates, to support wider Collection support, for which we have more tests now. Oops. Modified Paths: -------------- trunk/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSArray.java Modified: trunk/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSArray.java =================================================================== --- trunk/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSArray.java 2006-07-02 03:39:40 UTC (rev 928) +++ trunk/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSArray.java 2006-07-06 13:37:29 UTC (rev 929) @@ -492,27 +492,27 @@ public void add(int index, Object element) { - throw new UnsupportedOperationException(); + this.list.add(index,element); } public boolean add(Object o) { - throw new UnsupportedOperationException(); + return this.list.add(o); } public boolean addAll(Collection coll) { - throw new UnsupportedOperationException(); + return this.list.addAll(coll); } public boolean addAll(int index, Collection c) { - throw new UnsupportedOperationException(); + return this.list.addAll(index,c); } public void clear() { - throw new UnsupportedOperationException(); + this.list.clear(); } public Iterator iterator() @@ -549,27 +549,27 @@ public Object remove(int index) { - throw new UnsupportedOperationException(); + return this.list.remove(index); } public boolean remove(Object o) { - throw new UnsupportedOperationException(); + return this.list.remove(o); } public boolean removeAll(Collection coll) { - throw new UnsupportedOperationException(); + return this.list.removeAll(coll); } public boolean retainAll(Collection coll) { - throw new UnsupportedOperationException(); + return this.list.retainAll(coll); } public Object set(int index, Object element) { - throw new UnsupportedOperationException(); + return this.list.set(index,element); } public List subList(int fromIndex, int toIndex) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |