games.rednblack.puremvc.Proxy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Minimal PureMVC implementation using libGDX data structure
package games.rednblack.puremvc;
import games.rednblack.puremvc.interfaces.IProxy;
public class Proxy extends Notifier implements IProxy {
private final String name;
protected T data;
public Proxy(String name, T data) {
this.name = name;
this.data = data;
}
@Override
public T getData() {
return data;
}
public void setData(T data) {
this.data = data;
}
@Override
public final String getName() {
return name;
}
@Override
public void onRegister() {
}
@Override
public void onRemove() {
}
}