io.github.dbstarll.utils.net.api.index.AbstractIndex Maven / Gradle / Ivy
package io.github.dbstarll.utils.net.api.index;
public abstract class AbstractIndex implements Index {
private final T data;
private final int index;
protected AbstractIndex(final T data, final int index) {
this.data = data;
this.index = index;
}
@Override
public final T getData() {
return data;
}
@Override
public final int getIndex() {
return index;
}
}