Package org.mule.metadata.api.annotation
Class LengthAnnotation
- java.lang.Object
-
- org.mule.metadata.api.annotation.LengthAnnotation
-
- All Implemented Interfaces:
TypeAnnotation
public class LengthAnnotation extends Object implements TypeAnnotation
Applies a length range constrain of the annotated type. It can be applied to string , array or object.
-
-
Constructor Summary
Constructors Constructor Description LengthAnnotation(Number min, Number max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Optional<? extends Number>getMax()Optional<? extends Number>getMin()StringgetName()A name of the annotationinthashCode()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mule.metadata.api.annotation.TypeAnnotation
isPublic
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:TypeAnnotationA name of the annotation- Specified by:
getNamein interfaceTypeAnnotation- Returns:
- The name
-
-