io.virtdata.longs.Add Maven / Gradle / Ivy
package io.virtdata.longs;
import java.util.function.LongUnaryOperator;
public class Add implements LongUnaryOperator {
private final long addend;
public Add(long addend) {
this.addend = addend;
}
@Override
public long applyAsLong(long operand) {
return addend + operand;
}
}