com.github.leeonky.util.function.When Maven / Gradle / Ivy
The newest version!
package com.github.leeonky.util.function;
import java.util.function.Predicate;
public class When {
public static IfFactory when(Predicate predicate) {
return predicate::test;
}
public static If when(boolean condition) {
return () -> condition;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy