[자바]/자바 문법

[JAVA] Supplier 함수형 인터페이스(Funtional Interface)

쿠릉쿠릉 쾅쾅 2021. 11. 27. 18:00
728x90

 

 

Supplier 함수적 인터페이스는 매개변수는 없고, 반환값만 존재

 

인터페이스 추상 메소드 설명
Supplier<T> T get() T 객체 리턴
BooleanSupplier boolean getAsBoolean() boolean 값 리턴
DoubleSupplier double getAsDouble() double 값 리턴
intSupplier int getAsInt() int 값 리턴
longSupplier long getAsLong() long 값 리턴
728x90