Don't implement subList() as in Java this is a view and we can't do that easily
in ActionScript without ubercomplexity. So we'll rewrite the code that was using it. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4409 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -39,18 +39,6 @@ public class StreamableArrayList extends ArrayCollection
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Extracts and returns a sublist from this list.
|
|
||||||
*/
|
|
||||||
public function subList (startIdx :int, endIdx :int) :ArrayCollection
|
|
||||||
{
|
|
||||||
var newlist :ArrayCollection = new ArrayCollection();
|
|
||||||
for (var ii :int = startIdx; ii <= endIdx; ii++) {
|
|
||||||
newlist.addItem(getItemAt(ii));
|
|
||||||
}
|
|
||||||
return newlist;
|
|
||||||
}
|
|
||||||
|
|
||||||
// documentation inherited from interface Streamable
|
// documentation inherited from interface Streamable
|
||||||
public function writeObject (out :ObjectOutputStream) :void
|
public function writeObject (out :ObjectOutputStream) :void
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user