
in.ashwanthkumar.utils.func.Predicates Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of my-java-utils Show documentation
Show all versions of my-java-utils Show documentation
My personal set of utils that I take along with my java projects.
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