Microsoft SDK for Java

capacity

This method of the Queue Class obtains the maximum number of objects that the queue can contain without resizing.

Syntax

public int capacity();

Return Value

Returns the maximum capacity (in objects) of the queue.

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