[Java] java.util.function
✔ Supplier * There is no requirement that a new or distinct result be returned each time the supplier is invoked. (호출될 때마다 새로운 결과나 뚜렷한 결과를 반환 X) * Supplier functionNaim = () -> ""; * T result = functionNaim.get(T); Supplier myStringSupplier = () -> "hello world!"; System.out.println( "\n" +myStringSupplier.get()); Supplier myRandomDoubleSupplier = () -> Math.random(); printRandomDoubles(myRandom..
Java/Theory
2022. 10. 4. 17:01