Microsoft SDK for Java

List.trimToSize

Removes excess space from the list, ensuring that the capacity of the list is equal to the number of items.

Syntax

public void trimToSize()

© 1999 Microsoft Corporation. All rights reserved. Terms of use.