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

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

package xxl.mathematica.logic;


import java.util.List;
import java.util.function.Predicate;

/**
 * 全真
 */

public class AllTrue {
    /**
     * 如果对于所有的元素 t,p 均为 True,则生成 True.
     *
     * @param list
     * @param p
     * @param 
     * @return
     */
    public static  boolean allTrue(List list, Predicate p) {
        return NoneTrue.noneTrue(list, t -> !p.test(t));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy