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

xxl.mathematica.logic.Or Maven / Gradle / Ivy

package xxl.mathematica.logic;

import java.util.Arrays;

/**
 * 逻辑或
 */

public class Or {
    /**
     * 是逻辑 OR 函数. 它按顺序计算自变量,当这些自变量中任意一个是 True 返回 True. 如果都是 False 返回 False.
     *
     * @param predicates
     * @param         空也返回false
     * @return
     */
    public static  boolean or(Boolean... predicates) {
        return AnyTrue.anyTrue(Arrays.asList(predicates), aBoolean -> aBoolean);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy