public abstract boolean isValid ()

Tells whether or not this lock is valid.

A lock object remains valid until it is released or the associated file channel is closed, whichever comes first.

Returns:  true if, and only if, this lock is valid