com.twitter.common.base
Interface Supplier<T>

Type Parameters:
T - The supplied type.
All Superinterfaces:
ExceptionalSupplier<T,RuntimeException>, Supplier<T>

public interface Supplier<T>
extends ExceptionalSupplier<T,RuntimeException>, Supplier<T>

A convenience typedef that also ties into google's Supplier.


Method Summary
 T get()
          Supplies an item, possibly throwing E in the process of obtaining the item.
 

Method Detail

get

T get()
Description copied from interface: ExceptionalSupplier
Supplies an item, possibly throwing E in the process of obtaining the item.

Specified by:
get in interface ExceptionalSupplier<T,RuntimeException>
Specified by:
get in interface Supplier<T>
Returns:
the result of the computation