All Downloads are FREE. Search and download functionalities are using the official Maven repository.

li.rudin.rt.remote.observable.ObservableUpdater Maven / Gradle / Ivy

There is a newer version: 3.2
Show newest version
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