Package dagger.model
Enum Class RequestKind
- All Implemented Interfaces:
Serializable
,Comparable<RequestKind>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA request for aListenableFuture
.A default request for an instance.A request for aLazy
.A request for a members injection.A request for aProduced
.A request for aProducer
.A request for aProvider
.A request for aProvider
of aLazy
. -
Method Summary
Modifier and TypeMethodDescriptionReturns a string that represents requests of this kind for a key.static RequestKind
Returns the enum constant of this class with the specified name.static RequestKind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
A default request for an instance. E.g.:FooType
-
PROVIDER
A request for aProvider
. E.g.:Provider<FooType>
-
LAZY
A request for aLazy
. E.g.:Lazy<FooType>
-
PROVIDER_OF_LAZY
A request for aProvider
of aLazy
. E.g.:Provider<Lazy<FooType>>
-
MEMBERS_INJECTION
A request for a members injection. E.g.void injectMembers(FooType);
. Can only be requested by component interfaces. -
PRODUCER
A request for aProducer
. E.g.:Producer<FooType>
-
PRODUCED
A request for aProduced
. E.g.:Produced<FooType>
-
FUTURE
A request for aListenableFuture
. E.g.:ListenableFuture<FooType>
. These can only be requested by component interfaces.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
format
Returns a string that represents requests of this kind for a key.
-