net.sf.mmm.util.value.impl
Class ValueConverterToArrayOfDouble
java.lang.Object
net.sf.mmm.util.component.base.AbstractComponent
net.sf.mmm.util.component.base.AbstractLoggableComponent
net.sf.mmm.util.value.base.AbstractValueConverter<SOURCE,TARGET>
net.sf.mmm.util.value.base.AbstractRecursiveValueConverter<Object,CONTAINER>
net.sf.mmm.util.value.impl.AbstractValueConverterToContainer<ARRAY>
net.sf.mmm.util.value.impl.AbstractConverterToArray<double[]>
net.sf.mmm.util.value.impl.ValueConverterToArrayOfDouble
- All Implemented Interfaces:
- SimpleValueConverter<Object,double[]>, ValueConverter<Object,double[]>
@Singleton
@Named
public class ValueConverterToArrayOfDouble
- extends AbstractConverterToArray<double[]>
This is an implementation of the
ValueConverter interface that converts an
Object to double[].
- Since:
- 1.1.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueConverterToArrayOfDouble
public ValueConverterToArrayOfDouble()
- The constructor.
getTargetType
public Class<double[]> getTargetType()
- Is the guaranteed return-type of the
conversion. This information
is used externally to choose the most specific ValueConverter that
is appropriate for the conversion.
E.g. a generic converter can have Object as
target-type while a specific converter may have
Collection as target-type. Now
if an object (compliant with the source-type)
needs to be converted to a Collection or
List, the specific converter is used while for other
objects the generic converter is chosen.
Please note that the target-type is often more
general than the actual returned result. So a ValueConverter that converts a
comma-separated String to an ArrayList will
typically declare List as target-type.
- Returns:
- the target-type.
Copyright © 2001-2010 mmm-Team. All Rights Reserved.