public static enum AnnotationAppender.ValueFilter.SkipDefaults extends Enum<AnnotationAppender.ValueFilter.SkipDefaults> implements AnnotationAppender.ValueFilter
AnnotationAppender.ValueFilter.AppendDefaults, AnnotationAppender.ValueFilter.SkipDefaults
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isRelevant(AnnotationDescription annotationDescription,
MethodDescription.InDefinedShape methodDescription)
Checks if the given annotation value should be written as the value of the provided annotation property.
|
String |
toString() |
static AnnotationAppender.ValueFilter.SkipDefaults |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AnnotationAppender.ValueFilter.SkipDefaults[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnnotationAppender.ValueFilter.SkipDefaults INSTANCE
public static AnnotationAppender.ValueFilter.SkipDefaults[] values()
for (AnnotationAppender.ValueFilter.SkipDefaults c : AnnotationAppender.ValueFilter.SkipDefaults.values()) System.out.println(c);
public static AnnotationAppender.ValueFilter.SkipDefaults 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 nullpublic boolean isRelevant(AnnotationDescription annotationDescription, MethodDescription.InDefinedShape methodDescription)
AnnotationAppender.ValueFilter
isRelevant
in interface AnnotationAppender.ValueFilter
annotationDescription
- The annotation value that is being written.methodDescription
- The annotation method of which a value is being written.true
if the value should be written to the annotation.public String toString()
toString
in class Enum<AnnotationAppender.ValueFilter.SkipDefaults>
Copyright © 2014–2015. All rights reserved.