io.atleon.core.AbstractDecoratingAlo Maven / Gradle / Ivy
package io.atleon.core;
import java.util.function.Function;
/**
* Base implementation for a {@link DelegatingAlo} that decorates the delegation of invocations
* to another {@link Alo}.
*
* @param The type of data item exposed by the decorated {@link Alo}
*/
public abstract class AbstractDecoratingAlo extends AbstractDelegatingAlo {
protected AbstractDecoratingAlo(Alo delegate) {
super(delegate);
}
@Override
public Alo map(Function super T, ? extends R> mapper) {
return delegate.map(mapper);
}
@Override
public T get() {
return delegate.get();
}
}