함수형 인터페이스 정리해두기 2020-12-29 2022-05-31 FunctionalInterface, Java 12345678910@FunctionalInterfacepublic interface Runnable { public abstract void run();}```java@FunctionalInterfacepublic interface Consumer<T> { void accept(T t)} 1234@FunctionalInterfacepublic interface Supplier<T> { T get()} 1234@FunctionalInterfacepublic interface Function<T, R> { R apply(T t)} 1234@FunctionalInterfacepublic interface Predicate<T> { boolean test(T t)}