Function 과 Predicate에 정의된 메서드를 알아본다. Function에 정의된 메서드 test(T t), andThen(), compose(), identity() test(T t) -> Function에 존재하는 abstract method로 하나의 argument 를 받아 boolean을 return해준다. Function f1 = x -> x + 1; Function f2 = x -> x * 2; // Apply f2 after f1 Function f4 = f1.andThen(f2); System.out.println(f4.apply(2)); // Outputs 6 // Compose f2 before f1 Function f3 = f1.compose(f2); System.out.pr..