Implemented clear() rather than inheriting the *extremely* inefficient

clear() from AbstractList.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1693 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
ray
2005-08-09 01:54:16 +00:00
parent 8fd757c1e4
commit ae1df7e879
@@ -183,6 +183,13 @@ public class SortableArrayList extends AbstractList
return target;
}
// documentation inherited
public void clear ()
{
_elements = null;
_size = 0;
}
// documentation inherited from interface
public boolean add (Object o)
{