public enum AnnotationBehavior extends Enum<AnnotationBehavior> implements AnnotationBehaviorMergeStrategy
MetadataBuilder
with regard to bean validation annotations.DualBuilder
Modifier and Type | Method and Description |
---|---|
AnnotationBehavior |
apply(Iterable<? extends HasAnnotationBehavior> t) |
static AnnotationBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AnnotationBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
consensus, first
public static final AnnotationBehavior INCLUDE
public static final AnnotationBehavior EXCLUDE
public static final AnnotationBehavior ABSTAIN
public static AnnotationBehavior[] values()
for (AnnotationBehavior c : AnnotationBehavior.values()) System.out.println(c);
public static AnnotationBehavior 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 AnnotationBehavior apply(Iterable<? extends HasAnnotationBehavior> t)
apply
in interface Function<Iterable<? extends HasAnnotationBehavior>,AnnotationBehavior>
Copyright © 2010–2020 The Apache Software Foundation. All rights reserved.