Liferay 6.1.2-ce-ga3

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 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

Constructor Summary
ReadWriteLockKey(T key, boolean writeLock)
           
 
Method Summary
 boolean equals(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(Object obj)
Overrides:
equals in class Object

getKey

public T getKey()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isWriteLock

public boolean isWriteLock()

Liferay 6.1.2-ce-ga3