Sets the capacity of this vector to be the same as the size. @see #capacity @see #ensureCapacity @see #size
()
| 1008 | * @see #size |
| 1009 | */ |
| 1010 | public synchronized void trimToSize() { |
| 1011 | if (elementData.length != elementCount) { |
| 1012 | grow(elementCount); |
| 1013 | } |
| 1014 | } |
| 1015 | } |