org.reactfx.ProperEventStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of richtextfx Show documentation
Show all versions of richtextfx Show documentation
FX-Text-Area for formatted text and other special effects.
package org.reactfx;
import java.util.function.Consumer;
import org.reactfx.util.NotificationAccumulator;
/**
* Trait to be mixed into {@link ObservableBase} to obtain default
* implementation of some {@link EventStream} methods on top of
* {@linkplain Observable} methods and get additional helper methods for
* proper event streams implemented as default methods on top of
* {@linkplain ProperObservable} methods.
*/
public interface ProperEventStream
extends EventStream, ProperObservable, T> {
default void emit(T value) {
notifyObservers(value);
}
@Override
default NotificationAccumulator, T, ?> defaultNotificationAccumulator() {
return NotificationAccumulator.nonAccumulativeStreamNotifications();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy