This method of the IntRanges Class assigns a key and locks the IntRanges object.
public synchronized boolean lock(Object key);
Returns true if successful; returns false if the object is already locked.
key | The key object to be used for unlocking the object. |
NullPointerException if the key is null.