| 
 
 | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCollectionRelayer<E>
@ThreadSafe public class CollectionRelayer<E>
Relayer of collection events to listeners. Thread-safe if the provided collection of listeners, and the listeners themselves are thread-safe.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from interface CollectionListener | 
|---|
CollectionListener.Registry<E> | 
| Constructor Summary | |
|---|---|
CollectionRelayer(Collection<CollectionListener<E>> listeners)
Creates a CollectionRelayer.  | 
|
| Method Summary | |
|---|---|
 void | 
elementAdded(CollectionEvent.ElementAdded<E> e)
Relays the event to the listeners.  | 
 void | 
elementRemoved(CollectionEvent.ElementRemoved<E> e)
Relays the event to the listeners.  | 
protected  Collection<CollectionListener<E>> | 
listenersCopy()
Returns a copy of the listener collection.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public CollectionRelayer(Collection<CollectionListener<E>> listeners)
listeners - to whom events are relayed| Method Detail | 
|---|
public final void elementAdded(CollectionEvent.ElementAdded<E> e)
elementAdded in interface CollectionListener<E>public final void elementRemoved(CollectionEvent.ElementRemoved<E> e)
elementRemoved in interface CollectionListener<E>protected Collection<CollectionListener<E>> listenersCopy()
  | 
 
 | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||