com.g2forge.alexandria.java.function.tee.TapFunction Maven / Gradle / Ivy
package com.g2forge.alexandria.java.function.tee;
import java.util.function.Consumer;
import com.g2forge.alexandria.java.function.IFunction1;
import lombok.AllArgsConstructor;
@AllArgsConstructor
public class TapFunction implements IFunction1 {
protected final Consumer super T> consumer;
@Override
public T apply(T input) {
consumer.accept(input);
return input;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy