public enum AnnotationCollectorMode extends Enum<AnnotationCollectorMode>
Enum Constant and Description |
---|
DUPLICATE
Annotations from the annotation collection will always be inserted.
|
PREFER_COLLECTOR
Annotations from the collector will be added and any existing annotations with the same name will be removed.
|
PREFER_COLLECTOR_MERGED
Annotations from the collector will be added and any existing annotations with the same name will be removed but any new parameters found within existing annotations will be merged into the added annotation.
|
PREFER_EXPLICIT
Annotations from the collector will be ignored if any existing annotations with the same name are found.
|
PREFER_EXPLICIT_MERGED
Annotations from the collector will be ignored if any existing annotations with the same name are found but any new parameters on the collector annotation will be added to existing annotations.
|
Modifier and Type | Method and Description |
---|---|
static AnnotationCollectorMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AnnotationCollectorMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnnotationCollectorMode DUPLICATE
public static final AnnotationCollectorMode PREFER_COLLECTOR
public static final AnnotationCollectorMode PREFER_EXPLICIT
public static final AnnotationCollectorMode PREFER_COLLECTOR_MERGED
public static final AnnotationCollectorMode PREFER_EXPLICIT_MERGED
public static AnnotationCollectorMode[] values()
for (AnnotationCollectorMode c : AnnotationCollectorMode.values()) System.out.println(c);
public static AnnotationCollectorMode 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 null