| Modifier and Type | Class and Description |
|---|---|
| private static class | FuzzyMappingStrategy.
This is a simple class for grouping header name, member variable name, and the result of fuzzy matching in one sortable place. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | FuzzyMappingStrategy(boolean
If set, every record will be shortened
or lengthened to match the number of
headers forceCorrectRecordLength)Constructor to allow setting options for header name mapping. |
| Modifier and Type | Method and Description |
|---|---|
| public void | captureHeader(CSVReader reader)
Overrides com. Implements com. Implementation of this method can grab the header line before parsing begins to use to map columns to bean properties. |
| protected void | loadUnadornedFieldMap(ListValuedMap<Class<?>, Field> fields)
Overrides com. This implementation intentionally does nothing in order to allow fuzzy matching in case there are no annotations at all in the class in question. |
| FuzzyMappingStrategy | back to summary |
|---|---|
| public FuzzyMappingStrategy() Nullary constructor. Considered stable.
| |
| FuzzyMappingStrategy | back to summary |
|---|---|
| public FuzzyMappingStrategy(boolean forceCorrectRecordLength) Constructor to allow setting options for header name mapping.
Not considered stable. As new options are introduced for the mapping
strategy, they will be introduced here. You are encouraged to use
| |
| captureHeader | back to summary |
|---|---|
| public void captureHeader(CSVReader reader) throws IOException, CsvRequiredFieldEmptyException Overrides com. Implements com. Doc from com. Implementation of this method can grab the header line before parsing begins to use to map columns to bean properties.
| |
| loadUnadornedFieldMap | back to summary |
|---|---|
| protected void loadUnadornedFieldMap(ListValuedMap<Class<?>, Field> fields) Overrides com. This implementation intentionally does nothing in order to allow fuzzy matching in case there are no annotations at all in the class in question.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Integer | |
| pack-priv final Field | |
| pack-priv final String | |
| pack-priv final Class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(FuzzyMappingStrategy.
Implements java. Compares this object with the specified object for order. |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int |
| distance | back to summary |
|---|---|
| pack-priv final Integer distance | |
| field | back to summary |
|---|---|
| pack-priv final Field field | |
| header | back to summary |
|---|---|
| pack-priv final String header | |
| type | back to summary |
|---|---|
| pack-priv final Class<?> type | |
| FuzzyComparison | back to summary |
|---|---|
| pack-priv FuzzyComparison(Integer distance, String header, Class<?> type, Field field) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(FuzzyMappingStrategy. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |