@FunctionalInterface
해당 인터페이스가 함수형 인터페이스임을 나타냅니다. 즉, 하나의 추상 메서드만을 가지고 있어야 합니다.
@FunctionalInterface
interface MathOperation {
int operation(int a, int b);
}'JAVA' 카테고리의 다른 글
| Annotation - @Target (0) | 2024.02.15 |
|---|---|
| Annotation - @Native (0) | 2024.02.15 |
| Annotation - @SafeVarargs (0) | 2024.02.15 |
| Annotation - @SuppressWarnings (0) | 2024.02.15 |
| Annotation - @Deprecated (0) | 2024.02.15 |