com.liferay.portal.kernel.concurrent
Class ReadWriteLockKey<T>
java.lang.Object
com.liferay.portal.kernel.concurrent.ReadWriteLockKey<T>
public class ReadWriteLockKey<T>
- extends Object
Represents a key that is used by ReadWriteLockRegistry. T must also be
immutable and properly implement the equals and hashCode methods.
- See Also:
ReadWriteLockRegistry
ReadWriteLockKey
public ReadWriteLockKey(T key,
boolean writeLock)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getKey
public T getKey()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
isWriteLock
public boolean isWriteLock()