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

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

package xxl.mathematica.logic;


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

/**
 * 非真判定
 */

public class NoneTrue {
    /**
     * 判断list是否所有的元素都满足p
     *
     * @param list
     * @param p
     * @param 
     * @return
     */
    public static  boolean noneTrue(List list, Predicate p) {
        return io.vavr.collection.List.ofAll(list)
                .find(p)
                .isEmpty();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy