Sets the capacity of this vector to be the same as the size. @see #capacity @see #ensureCapacity @see #size
()
| 1034 | * @see #size |
| 1035 | */ |
| 1036 | public synchronized void trimToSize() { |
| 1037 | if (elementData.length != elementCount) { |
| 1038 | grow(elementCount); |
| 1039 | } |
| 1040 | } |
| 1041 | |
| 1042 | // private synchronized void writeObject(ObjectOutputStream stream) |
| 1043 | // throws IOException { |