mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Add method 'toString()' to IntArrayList.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user