Enum GradleProjectType
- java.lang.Object
-
- java.lang.Enum<GradleProjectType>
-
- dagger.hilt.processor.internal.optionvalues.GradleProjectType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GradleProjectType>
public enum GradleProjectType extends java.lang.Enum<GradleProjectType>
Valid Gradle project type values. Note that we exclude 'com.android.feature' as Hilt doesn't support it for now.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GradleProjectType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GradleProjectType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSET
public static final GradleProjectType UNSET
Project type is not set, e.g. Hilt Gradle Plugin not applied.
-
APP
public static final GradleProjectType APP
App project created with plugin 'com.android.application'.
-
LIBRARY
public static final GradleProjectType LIBRARY
Library project created with plugin 'com.android.library'.
-
TEST
public static final GradleProjectType TEST
Test project created with plugin 'com.android.test'.
-
-
Method Detail
-
values
public static GradleProjectType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GradleProjectType c : GradleProjectType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GradleProjectType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-