net.stickycode.coercion.target
Class ArrayCoercionTarget
java.lang.Object
net.stickycode.coercion.target.AbstractCoercionTarget
net.stickycode.coercion.target.ArrayCoercionTarget
- All Implemented Interfaces:
- CoercionTarget
public class ArrayCoercionTarget
- extends AbstractCoercionTarget
ArrayCoercionTarget
public ArrayCoercionTarget(Class<?> type,
Class<?> owner,
CoercionTarget parent,
String name)
hasComponents
public boolean hasComponents()
- Description copied from interface:
CoercionTarget
- Does the target have components, this is true of any container e.g.
Collection, Map
- Specified by:
hasComponents in interface CoercionTarget- Overrides:
hasComponents in class AbstractCoercionTarget
getComponentCoercionTypes
public CoercionTarget[] getComponentCoercionTypes()
- Description copied from interface:
CoercionTarget
- Return the
CoercionTargets 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.
- Specified by:
getComponentCoercionTypes in interface CoercionTarget- Overrides:
getComponentCoercionTypes in class AbstractCoercionTarget
isArray
public boolean isArray()
- Description copied from interface:
CoercionTarget
- Is the underlying target an array
- Specified by:
isArray in interface CoercionTarget- Overrides:
isArray in class AbstractCoercionTarget
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class AbstractCoercionTarget
Copyright © 2003-2012 RedEngine Ltd. All Rights Reserved.