public enum RequestKind extends Enum<RequestKind>
Enum Constant and Description |
---|
FUTURE
A request for a
ListenableFuture . |
INSTANCE
A default request for an instance.
|
LAZY
A request for a
Lazy . |
MEMBERS_INJECTOR
A request for a
MembersInjector . |
PRODUCED
A request for a
Produced . |
PRODUCER
A request for a
Producer . |
PROVIDER
A request for a
Provider . |
PROVIDER_OF_LAZY
|
Modifier and Type | Method and Description |
---|---|
static RequestKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RequestKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RequestKind INSTANCE
FooType
public static final RequestKind PROVIDER
Provider
. E.g.: Provider<FooType>
public static final RequestKind LAZY
Lazy
. E.g.: Lazy<FooType>
public static final RequestKind PROVIDER_OF_LAZY
public static final RequestKind MEMBERS_INJECTOR
MembersInjector
. E.g.: MembersInjector<FooType>
public static final RequestKind PRODUCER
Producer
. E.g.: Producer<FooType>
public static final RequestKind PRODUCED
Produced
. E.g.: Produced<FooType>
public static final RequestKind FUTURE
ListenableFuture
. E.g.: ListenableFuture<FooType>
. These can only be requested by component interfaces.public static RequestKind[] values()
for (RequestKind c : RequestKind.values()) System.out.println(c);
public static RequestKind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2012–2017 The Dagger Authors. All rights reserved.