Microsoft SDK for Java

lock

This method of the IntRanges Class assigns a key and locks the IntRanges object.

Syntax

public synchronized boolean lock(Object key);

Return Value

Returns true if successful; returns false if the object is already locked.

Parameters

key The key object to be used for unlocking the object.

Exceptions

NullPointerException if the key is null.

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