VOOZH about

URL: https://docs.oracle.com/javase/8/docs/api/java/util/function/Supplier.html

⇱ Supplier (Java Platform SE 8 )


Skip navigation links
Java™ Platform
Standard Ed. 8
  • Summary: 
  • Nested | 
  • Field | 
  • Constr | 
  • Method
  • Detail: 
  • Field | 
  • Constr | 
  • Method
compact1, compact2, compact3
java.util.function

Interface Supplier<T>

  • Type Parameters:
    T - the type of results supplied by this supplier
    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 Supplier<T>
    Represents a supplier of results.

    There is no requirement that a new or distinct result be returned each time the supplier is invoked.

    This is a functional interface whose functional method is get().

    Since:
    1.8
    • Method Detail

      • get

        T get()
        Gets a result.
        Returns:
        a result
Skip navigation links
Java™ Platform
Standard Ed. 8
  • Summary: 
  • Nested | 
  • Field | 
  • Constr | 
  • Method
  • Detail: 
  • Field | 
  • Constr | 
  • Method