본인이 배운 바로는 함수형 인터페이스는
내부에 추상 메서드 하나만 있는 걸로 암.
그런데 자바에서 제공하는 함수형 인터페이스들 보면
그게 아닌 것 같음.
Consumer를 예를 들면
| Modifier and Type | Method | Description |
|---|---|---|
| void | accept(T t) | Performs this operation on the given argument. |
| default Consumer<T> | andThen(Consumer<? super T> after) | Returns a composed Consumer that performs, in sequence, this operation followed by the after operation. |
이런식으로 한 개가 아님.
어떻게 된거임?
default 키워드 된건 예왼가보지 저거 자바8부터 나왔던걸로 아는데 그렇게 하기로 한듯함
디폴트는 아님