Interface Function0<R>

All Superinterfaces:
Supplier<R>
All Known Implementing Classes:
Box, Box.DoubleBox, Box.IntBox, Box.LongBox
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface Function0<R>
extends Supplier<R>
  • Method Summary

    Modifier and Type Method Description
    static <R> Function0<R> from​(Supplier<R> supplier)  
    default Function0<R> memoizing()  

    Methods inherited from interface java.util.function.Supplier

    get