Interface Supplier<T>

Type Parameters:
T - type of object to provide/create.

public interface Supplier<T>
Abstract provider that can supply (provide/create) objects of given type. Delete when we move to Java 8 and use built-in type.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Provides an instance.
  • Method Details

    • get

      T get()
      Provides an instance.