sky.monome.util
Interface Synchronized

All Known Implementing Classes:
ReversibleHashMap, SynchronizedList

public interface Synchronized

Interface for all collections that are strongly synchronized. A strongly synchronized collection has all its methods incorporated into a synchronized block based on a final lock object, and provide this final lock object for external synchronization, like iteration over a for loop.

Author:
PJ Skyman

Method Summary
 java.lang.Object getLockObject()
          Returns the object over which the internal and external synchronization will operate.
 

Method Detail

getLockObject

java.lang.Object getLockObject()
Returns the object over which the internal and external synchronization will operate. Only implicit and explicit usages of iterator(s) need external synchronization, because all others methods are already internally synchronized.

Returns:
The object over which the internal and external synchronization will operate.