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

com.github.basking2.sdsai.itrex.functions.bool.AndFunction Maven / Gradle / Ivy

There is a newer version: 1.1.23
Show newest version
package com.github.basking2.sdsai.itrex.functions.bool;

/**
 */
public class AndFunction extends AbstractBooleanFunction {

    public AndFunction() {
        super(true);
    }

    @Override
    public Result booleanOperation(Boolean b1, Boolean b2) {
        final boolean b = b1 && b2;
        if (b) {
            // If b is true, it might go false. Continue.
            return new Result(true, b);
        }
        else {
            return new Result(false, b);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy