Add method 'toString()' to IntArrayList.

This commit is contained in:
Sergey Evdokimov
2011-03-25 15:31:09 +03:00
parent 676abb3054
commit d4f3d4c655
@@ -15,6 +15,8 @@
*/
package com.intellij.util.containers;
import java.util.Arrays;
public class IntArrayList implements Cloneable {
private int[] myData;
private int mySize;
@@ -163,4 +165,9 @@ public class IntArrayList implements Cloneable {
throw new IndexOutOfBoundsException("Index: " + index + ", Size: " + mySize);
}
}
@Override
public String toString() {
return Arrays.toString(toArray());
}
}