Enum AnnotationType
java.lang.Object
java.lang.Enum<AnnotationType>
com.mrivanplays.annotationconfig.core.annotations.type.AnnotationType
- All Implemented Interfaces:
Serializable
,Comparable<AnnotationType>
,java.lang.constant.Constable
Represents an annotation type, holding utility methods for the held raw annotation type.
- Author:
- MrIvanPlays
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation>
Returns the raw annotation type, held by thisAnnotationType
boolean
is
(AnnotationType type) boolean
is
(Class<? extends Annotation> anno) Returns if the raw annotation type specified meets thisAnnotationType
static Optional<AnnotationType>
match
(Class<? extends Annotation> annotationType) Returns anOptional
value, which may contain theAnnotationType
matched to the specified .toString()
static AnnotationType
Returns the enum constant of this type with the specified name.static AnnotationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COMMENT
-
COMMENTS
-
KEY
-
CONFIG_OBJECT
-
IGNORE
-
MAX
-
MIN
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
match
Returns anOptional
value, which may contain theAnnotationType
matched to the specified .- Parameters:
annotationType
- the annotation type wanted- Returns:
- annotation type or an empty optional
-
getRawType
Returns the raw annotation type, held by thisAnnotationType
- Returns:
- raw annotation class
-
is
Returns if the raw annotation type specified meets thisAnnotationType
- Parameters:
anno
- the raw annotation type you want to check- Returns:
- boolean value, representing the outcome of this check
-
is
- Parameters:
type
- annotation type- Returns:
- boolean value, representing the outcome of this check
- See Also:
-
toString
- Overrides:
toString
in classEnum<AnnotationType>
-