public interface EnumValue
When creating an
Annotation
, we may need to create an enum value
without access to the enumeration.
In such a case, you can use this type when calling Annotation.BuilderBase.putValue(String, Object)
-
Method Details
-
create
Create a new enum value, when the enum is not available on classpath.- Parameters:
enumType
- type of the enumerationenumName
- value of the enumeration- Returns:
- enum value
-
create
Create a new enum value.- Type Parameters:
T
- type of the enum- Parameters:
type
- enum typevalue
- enum value constant- Returns:
- new enum value
-
type
TypeName type()Type of the enumeration.- Returns:
- type name of the enumeration
-
name
String name()The enum value.- Returns:
- enum value
-