public final class MappingUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T> MappingStrategy<T> |
determineMappingStrategy(Class type)
Determines which mapping strategy is appropriate for this bean.
|
public static <T> MappingStrategy<T> determineMappingStrategy(Class type)
CsvBindByPosition
or
CsvCustomBindByPosition
are present,
ColumnPositionMappingStrategy
is chosen.HeaderColumnNameMappingStrategy
is chosen. If
annotations are present, they will be used, otherwise the field names
will be used as the column names.T
- The type of the bean for which the mapping strategy is soughttype
- The class of the bean for which the mapping strategy is soughtCopyright © 2017. All rights reserved.