Package com.globalmentor.collections
Class ReadWriteLockDecorator
java.lang.Object
com.globalmentor.collections.ReadWriteLockDecorator
- All Implemented Interfaces:
ReadWriteLock
- Direct Known Subclasses:
DecoratorReadWriteLockCollection
,DecoratorReadWriteLockMap
A read/write lock that decorates another read/write lock.
- Author:
- Garret Wilson
-
Constructor Summary
ConstructorDescriptionReadWriteLockDecorator
(ReadWriteLock readWriteLock) Read write lock constructor. -
Method Summary
-
Constructor Details
-
ReadWriteLockDecorator
Read write lock constructor.- Parameters:
readWriteLock
- The lock for controlling access to the properties.- Throws:
NullPointerException
- if the given lock isnull
.
-
-
Method Details
-
readLock
- Specified by:
readLock
in interfaceReadWriteLock
-
writeLock
- Specified by:
writeLock
in interfaceReadWriteLock
-