|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.seaf.util.convert.collection.SequenceConverterUtils
public class SequenceConverterUtils
| Constructor Summary | |
|---|---|
SequenceConverterUtils()
|
|
| Method Summary | |
|---|---|
Object |
convert(Object sourceValue,
Class<?> targetType,
Class<?> targetComponentType,
ObjectConverter<Object,Object> objectConverter)
Convert an Object array or a Collection to an array or a List of a given component type. |
Object[] |
convertToArray(Object sourceValue,
Class<?> targetComponentType,
ObjectConverter<Object,Object> objectConverter)
Convert an Object array or a Collection to an array of a given component type. |
List<Object> |
convertToList(Object sourceValue,
Class<?> targetComponentType,
ObjectConverter<Object,Object> objectConverter)
Convert an Object array or a Collection to a List of a given component type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SequenceConverterUtils()
| Method Detail |
|---|
public Object convert(Object sourceValue,
Class<?> targetType,
Class<?> targetComponentType,
ObjectConverter<Object,Object> objectConverter)
Each object is converted using a given object converter.
sourceValue - Object to be convertedtargetType - The required target typetargetComponentType - Component type of the target arrayobjectConverter - Object converter to be used to convert each object
SeafConversionException - When source object is of unsupported type
public Object[] convertToArray(Object sourceValue,
Class<?> targetComponentType,
ObjectConverter<Object,Object> objectConverter)
Each object is converted using a given object converter.
sourceValue - Object to be convertedtargetComponentType - Component type of the target arrayobjectConverter - Object converter to be used to convert each object
SeafConversionException - When source object is of unsupported type
public List<Object> convertToList(Object sourceValue,
Class<?> targetComponentType,
ObjectConverter<Object,Object> objectConverter)
Each object is converted using a given object converter.
sourceValue - Object to be convertedtargetComponentType - Component type of the target ListobjectConverter - Object converter to be used to convert each object
SeafConversionException - When source object is of unsupported type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||