public class ArrayCoercionTarget extends AbstractCoercionTarget
owner, parent, type| Constructor and Description |
|---|
ArrayCoercionTarget(Class<?> type,
Class<?> owner,
CoercionTarget parent,
String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
CoercionTarget[] |
getComponentCoercionTypes()
Return the
CoercionTargets for the components. |
boolean |
hasComponents()
Does the target have components, this is true of any container e.g.
|
int |
hashCode() |
boolean |
isArray()
Is the underlying target an array
|
String |
toString() |
boxedType, canBeAnnotated, getAnnotatedElement, getName, getOwner, getParent, getType, hasParent, isPrimitivepublic ArrayCoercionTarget(Class<?> type, Class<?> owner, CoercionTarget parent, String name)
public boolean hasComponents()
CoercionTargetCollection, MaphasComponents in interface CoercionTargethasComponents in class AbstractCoercionTargetpublic CoercionTarget[] getComponentCoercionTypes()
CoercionTargetCoercionTargets for the components.
For a collection this would return a single CoercionTarget for the element contained.
For a map you would get one for the key and one for the value.getComponentCoercionTypes in interface CoercionTargetgetComponentCoercionTypes in class AbstractCoercionTargetpublic boolean isArray()
CoercionTargetisArray in interface CoercionTargetisArray in class AbstractCoercionTargetpublic String toString()
toString in class AbstractCoercionTargetCopyright © 2003–2017 RedEngine Ltd. All rights reserved.