Microsoft SDK for Java

setCapacity

This method of the Queue Class changes the queue's capacity.

Syntax

public synchronized int setCapacity(int newcapacity);

Return Value

Returns the actual final capacity assigned to the queue.

Parameters

newcapacity The new number of elements in the queue.

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