class BehaviorSubject extends Subject<T> {

    @Override
    public void onSubscribe(Disposable s) {
        if (terminalEvent.get() != null) {
            s.dispose();
        }
    }

    @SuppressWarnings("unchecked")  BehaviorSubject();
      BehaviorSubject(T defaultValue);

}