Interface Function0<R>

All Superinterfaces:
Serializable, Supplier<R>
All Known Implementing Classes:
CheckedFunction0, PassThruFunction0
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>, Serializable
Function0 is a zero argument lambda. It can be stored in a variable or passed as a parameter and executed by calling the value method.
  • Method Summary

    Modifier and Type
    Method
    Description
    default R
    get()
     
     
  • Method Details

    • value

      R value()
    • get

      default R get()
      Specified by:
      get in interface Supplier<R>