Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## ru.rsdn.patterns.behavioral.observer
Class AbstractPublisher<T extends java.util.Collection<ISubscriber>>

    java.lang.Object
      ru.rsdn.patterns.behavioral.observer.AbstractPublisher<T>

Type Parameters:
  `T` - тип коллекции подписчиков

Direct Known Subclasses:
  AbstractPublisherTest, FaultTolerantPublisherTest, InitNotifyPublisher, MemoryLeakNotTrivialFinalizeSubscriberTest

    public abstract class AbstractPublisher<T extends java.util.Collection<ISubscriber>>

extends java.lang.Object

Абстрактный издатель

Field Summary
`protected T` | `subscribers`

Constructor Summary
`AbstractPublisher(T _subscribers)` Конструктор

Method Summary
`java.util.Collection<ISubscriber>` | `getSubscribers()`
`void` | `subscribe(ISubscriber subscriber)` Подписаться
`void` | `unsubscribe(ISubscriber subscriber)` Отписаться

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### subscribers

    protected final T extends java.util.Collection<ISubscriber> subscribers

Constructor Detail

### AbstractPublisher

    public AbstractPublisher(T _subscribers)

  Конструктор

  Parameters:
    `_subscribers` - коллекция подписчиков

Method Detail

### subscribe

    public void subscribe(ISubscriber subscriber)

  Подписаться

  Parameters:
    `subscriber` - подписчик

### unsubscribe

    public void unsubscribe(ISubscriber subscriber)

  Отписаться

  Parameters:
    `subscriber` - подписчик

### getSubscribers

    public java.util.Collection<ISubscriber> getSubscribers()

  Returns:
    подписчики

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD