Genericized StreamableArrayList
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4196 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -34,7 +34,7 @@ import com.threerings.io.Streamable;
|
|||||||
*
|
*
|
||||||
* @see Streamable
|
* @see Streamable
|
||||||
*/
|
*/
|
||||||
public class StreamableArrayList extends ArrayList
|
public class StreamableArrayList<E> extends ArrayList<E>
|
||||||
implements Streamable
|
implements Streamable
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@@ -59,7 +59,7 @@ public class StreamableArrayList extends ArrayList
|
|||||||
int ecount = in.readInt();
|
int ecount = in.readInt();
|
||||||
ensureCapacity(ecount);
|
ensureCapacity(ecount);
|
||||||
for (int ii = 0; ii < ecount; ii++) {
|
for (int ii = 0; ii < ecount; ii++) {
|
||||||
add(in.readObject());
|
add((E)in.readObject());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user