li.rudin.rt.remote.observable.ObservableUpdater Maven / Gradle / Ivy
package li.rudin.rt.remote.observable;
import li.rudin.rt.api.observable.Observable;
import li.rudin.rt.remote.RTEventListener;
public class ObservableUpdater implements RTEventListener
{
public ObservableUpdater(Observable observable, Class type)
{
this.observable = observable;
this.type = type;
}
private final Observable observable;
private final Class type;
@Override
public Class getEventType()
{
return type;
}
@Override
public void onEvent(T event)
{
observable.set(event);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy