public class ExclusiveOptionalsTypeAnnotation extends Object implements TypeAnnotation
TypeAnnotation
used to enrich an ObjectType
by specifying
that the contained parameters have an exclusive relation as it is specified in ExclusiveOptionals
This class is immutable.
Constructor and Description |
---|
ExclusiveOptionalsTypeAnnotation(Set<String> exclusiveParameterNames,
boolean isOneRequired) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Set<String> |
getExclusiveParameterNames() |
String |
getName()
A name of the annotation
|
int |
hashCode() |
boolean |
isOneRequired() |
boolean |
isPublic()
Returns whether this annotation is public or not.
|
public static final String NAME
public boolean isOneRequired()
public String getName()
TypeAnnotation
getName
in interface TypeAnnotation
public boolean isPublic()
TypeAnnotation
Non public annotations will however always be available through MetadataType.getAnnotation(Class)
and all related methods.
isPublic
in interface TypeAnnotation
Copyright © 2018. All rights reserved.