public class LockConflictError
extends java.lang.Object
| Constructor and Description |
|---|
LockConflictError(FileLock lock) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
FileLock |
getLock()
The lock that caused the conflict.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final FileLock lock
public LockConflictError(FileLock lock)
lock - The lock that caused the conflict. Must not be null.java.lang.IllegalArgumentException - If any argument does not meet its
preconditions.public FileLock getLock()
null.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringMultiline()
The returned String may contain newlines.