개발
[java] 람다 Functional Interface
으아아아앜
2020. 3. 12. 16:18
Interface |
Function Descriptor |
Abstract method |
Predicate<T> |
(T) -> boolean |
boolean test(T t); |
Consumer<T> |
(T) -> void |
void accept(T t); |
Function<T,R> |
(T) -> R |
R apply(T t); |
Supplier<T> |
() -> T |
T get(); |
UnaryOperator<T> |
(T) -> T |
T apply(T t); |