com.firefly.net.AbstractOutputEntry Maven / Gradle / Ivy
package com.firefly.net;
import com.firefly.utils.concurrent.Callback;
public abstract class AbstractOutputEntry implements OutputEntry {
protected final Callback callback;
protected final T data;
public AbstractOutputEntry(Callback callback, T data) {
this.callback = callback;
this.data = data;
}
@Override
public Callback getCallback() {
return callback;
}
@Override
public T getData() {
return data;
}
}