Java tutorial
import java.util.function.Predicate; public class Main { public static void main(String[] args) { Predicate<String> i = Predicate.isEqual("asdf"); System.out.println(i.test("java2s.com ")); } }