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

io.virtdata.libbasics.shared.unary_int.Flow Maven / Gradle / Ivy

There is a newer version: 2.12.15
Show newest version
package io.virtdata.libbasics.shared.unary_int;

import java.util.function.IntUnaryOperator;

public class Flow implements IntUnaryOperator {

    private final IntUnaryOperator[] ops;

    public Flow(IntUnaryOperator... ops) {
        this.ops = ops;
    }

    @Override
    public int applyAsInt(int operand) {
        int value = operand;
        for (IntUnaryOperator op : ops) {
            value = op.applyAsInt(value);
        }
        return value;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy