ReentrantLock that can be used in conjunction with
try..resources constructs.
| Modifier and Type | Field and Description |
|---|---|
| private final ReentrantLock |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. |
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| public int | |
| public boolean | |
| public AutoCloseableLock |
| internalLock | back to summary |
|---|---|
| private final ReentrantLock internalLock | |
| AutoCloseableLock | back to summary |
|---|---|
| public AutoCloseableLock() | |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isHeldByCurrentThread | back to summary |
|---|---|
| public boolean isHeldByCurrentThread() | |
| lock | back to summary |
|---|---|
| public AutoCloseableLock lock() | |