public class DefaultUnionType extends BaseMetadataType implements UnionType
annotations, BASE_REFLECTION_FIELDS| Constructor and Description |
|---|
DefaultUnionType(List<MetadataType> types,
MetadataFormat metadataFormat,
Map<Class<? extends TypeAnnotation>,TypeAnnotation> extensions) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(MetadataTypeVisitor visitor)
Dispatches in a reflective way to the method with prefix "visit" with the specific type as argument.
|
boolean |
equals(Object object) |
Field[] |
getReflectionComparableFields()
A list of the fields that define the identity of this class.
|
List<MetadataType> |
getTypes()
The list of types that belongs to this union.
|
int |
hashCode() |
getAnnotation, getAnnotations, getDescription, getMetadataFormat, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotation, getAnnotations, getDescription, getMetadataFormatpublic DefaultUnionType(List<MetadataType> types, MetadataFormat metadataFormat, Map<Class<? extends TypeAnnotation>,TypeAnnotation> extensions)
public Field[] getReflectionComparableFields()
ReflectionAwareComparable
Have in mind not exposing fields of class Pattern, for example, that only check for reference
equality (If that is not the desired behaviour).
getReflectionComparableFields in interface ReflectionAwareComparablegetReflectionComparableFields in class BaseMetadataTypepublic List<MetadataType> getTypes()
UnionTypepublic void accept(MetadataTypeVisitor visitor)
MetadataTypevisitObject(ObjectType objectType) will be called when this type is an ObjectType.accept in interface MetadataTypevisitor - The visitorpublic boolean equals(Object object)
equals in class BaseMetadataTypepublic int hashCode()
hashCode in class BaseMetadataTypeCopyright © 2024 MuleSoft, Inc.. All rights reserved.