public class ReadWriteLockKey<T>
extends java.lang.Object
Represents a key that is used by ReadWriteLockRegistry. T must also be immutable and properly implement the equals and hashCode methods.
ReadWriteLockRegistry| Constructor and Description |
|---|
ReadWriteLockKey(T key,
boolean writeLock) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
T |
getKey() |
int |
hashCode() |
boolean |
isWriteLock() |
public ReadWriteLockKey(T key, boolean writeLock)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic T getKey()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isWriteLock()