Package org.mule.metadata.api.model.impl
Class DefaultArrayType
- java.lang.Object
-
- org.mule.metadata.api.model.impl.BaseMetadataType
-
- org.mule.metadata.api.model.impl.DefaultArrayType
-
- All Implemented Interfaces:
ArrayType,FieldsComparable,MetadataType
public class DefaultArrayType extends BaseMetadataType implements ArrayType
-
-
Field Summary
-
Fields inherited from class org.mule.metadata.api.model.impl.BaseMetadataType
annotations
-
-
Constructor Summary
Constructors Constructor Description DefaultArrayType(Supplier<MetadataType> type, MetadataFormat metadataFormat, Map<Class<? extends TypeAnnotation>,TypeAnnotation> extensions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(MetadataTypeVisitor visitor)Dispatches in a reflective way to the method with prefix "visit" with the specific type as argument.booleanequals(Object obj)Object[]getFieldValues()A list of the fields that define the identity of this class.MetadataTypegetType()The type of the array-
Methods inherited from class org.mule.metadata.api.model.impl.BaseMetadataType
getAnnotation, getAnnotations, getDescription, getMetadataFormat, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.mule.metadata.api.model.MetadataType
getAnnotation, getAnnotations, getDescription, getMetadataFormat
-
-
-
-
Constructor Detail
-
DefaultArrayType
public DefaultArrayType(Supplier<MetadataType> type, MetadataFormat metadataFormat, Map<Class<? extends TypeAnnotation>,TypeAnnotation> extensions)
-
-
Method Detail
-
getType
public MetadataType getType()
Description copied from interface:ArrayTypeThe type of the array
-
accept
public void accept(MetadataTypeVisitor visitor)
Description copied from interface:MetadataTypeDispatches in a reflective way to the method with prefix "visit" with the specific type as argument. ExamplevisitObject(ObjectType objectType)will be called when this type is an ObjectType.- Specified by:
acceptin interfaceMetadataType- Parameters:
visitor- The visitor
-
getFieldValues
public Object[] getFieldValues()
Description copied from interface:FieldsComparableA list of the fields that define the identity of this class. These fields can be used to compare if instances of a class are equal, or to generate a hash code for it.Have in mind not exposing fields of class
Pattern, for example, that only check for reference equality (If that is not the desired behaviour).- Specified by:
getFieldValuesin interfaceFieldsComparable- Overrides:
getFieldValuesin classBaseMetadataType
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classBaseMetadataType
-
-