textbender.g.util
Class CollectionRelayerLL<E>
java.lang.Object
  
CollectionRelayer<E>
      
CollectionRelayerLL<E>
- All Implemented Interfaces: 
 - EventListener, CollectionListener<E>
 
@ThreadSafe
public final class CollectionRelayerLL<E>
- extends CollectionRelayer<E>
 
Relayer of collection events,
 with a collection of listeners that is guarded by a lock.
 Thread-safe if the listeners are thread-safe.
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
CollectionRelayerLL
public CollectionRelayerLL(Collection<CollectionListener<E>> listeners,
                           Object listenersLock)
- Creates a CollectionRelayerLL.
- Parameters:
 listeners - to whom events are relayedlistenersLock - held when making a copy
         of the collection of listeners, prior to relaying each event
 
listenersCopy
protected Collection<CollectionListener<E>> listenersCopy()
- Description copied from class: 
CollectionRelayer 
- Returns a copy of the listener collection.
 A copy is used to guard against collection modification during relay,
 e.g. by the listeners themselves,
 which would cause relay iteration to fail.
- Overrides:
 listenersCopy in class CollectionRelayer<E>