Java.until.function包下除了Consumer接口还有Supplier接口,Predicate接口和Function接口 Supplier接口 Supplier接口不包含任何静态方法和默认方法,它只有一个抽象方法 T get()方法 Math.random方法可以赋给Supplier并随时调用 Logger lo = new Logger("..."); DoubleSupplier bs = new DoubleSupplier(){ public double getAsDouble(){ return Math.r...