Small change to make these two structures implement RandomAccess (as they should)

This commit is contained in:
Mike Jensen
2014-04-16 14:33:32 -06:00
parent 17f7754d2c
commit 7192b0081d
3 changed files with 4 additions and 2 deletions

View File

@ -10,7 +10,7 @@
package java.util;
public class Vector<T> extends AbstractList<T> implements java.io.Serializable, Cloneable {
public class Vector<T> extends AbstractList<T> implements java.io.Serializable, Cloneable, RandomAccess {
private final ArrayList<T> list;
public Vector(int capacity) {