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

in.ashwanthkumar.utils.func.Predicates Maven / Gradle / Ivy

The newest version!
package in.ashwanthkumar.utils.func;

public class Predicates {
    public static  Predicate True() {
        return new Predicate() {
            @Override
            public Boolean apply(T input) {
                return true;
            }
        };
    }

    public static  Predicate False() {
        return new Predicate() {
            @Override
            public Boolean apply(T input) {
                return false;
            }
        };
    }

    public static  Predicate notNull() {
        return new Predicate() {
            @Override
            public Boolean apply(T input) {
                return input != null;
            }
        };
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy