com.liferay.portal.kernel.concurrent
Class ReadWriteLockKey<T>

java.lang.Object
  extended by com.liferay.portal.kernel.concurrent.ReadWriteLockKey<T>

public class ReadWriteLockKey<T>
extends java.lang.Object

View Source Represents a key that is used by ReadWriteLockRegistry. T must also be immutable and properly implement the equals and hashCode methods. View Source

Author:
Shuyang Zhou
See Also:
ReadWriteLockRegistry

Constructor Summary
ReadWriteLockKey(T key, boolean writeLock)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 T getKey()
           
 int hashCode()
           
 boolean isWriteLock()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadWriteLockKey

public ReadWriteLockKey(T key,
                        boolean writeLock)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getKey

public T getKey()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

isWriteLock

public boolean isWriteLock()