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:
@@ -183,6 +183,13 @@ public class SortableArrayList extends AbstractList
|
|||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// documentation inherited
|
||||||
|
public void clear ()
|
||||||
|
{
|
||||||
|
_elements = null;
|
||||||
|
_size = 0;
|
||||||
|
}
|
||||||
|
|
||||||
// documentation inherited from interface
|
// documentation inherited from interface
|
||||||
public boolean add (Object o)
|
public boolean add (Object o)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user