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

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 mapper) {
        return delegate.map(mapper);
    }

    @Override
    public T get() {
        return delegate.get();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy