io.virtdata.basicsmappers.from_long.to_long.Mul Maven / Gradle / Ivy
package io.virtdata.basicsmappers.from_long.to_long;
import io.virtdata.annotations.ThreadSafeMapper;
import java.util.function.LongUnaryOperator;
@ThreadSafeMapper
public class Mul implements LongUnaryOperator {
public Mul(long multiplicand) {
this.multiplicand = multiplicand;
}
private long multiplicand;
@Override
public long applyAsLong(long operand) {
return operand * multiplicand;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy