
javadoc.com.google.common.base.Supplier.html Maven / Gradle / Ivy
Supplier (Guava: Google Core Libraries for Java 11.0.1 API)
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
com.google.common.base
Interface Supplier<T>
@GwtCompatible
public interface Supplier<T>
A class that can supply objects of a single type. Semantically, this could be a factory, generator, builder, closure, or something else entirely. No guarantees are implied by this interface.
- Since:
- 2.0 (imported from Google Collections Library)
- Author:
- Harry Heymann
Method Summary | |
---|---|
T |
get()
Retrieves an instance of the appropriate type. |
Method Detail |
---|
get
T get()
- Retrieves an instance of the appropriate type. The returned object may or
may not be a new instance, depending on the implementation.
- Returns:
- an instance of the appropriate type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010-2012. All Rights Reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy