FieldModifier implementations.
Example usage:
FieldModifier modifier = FieldModifiers.TRIM
.andThen(FieldModifier.modify(field -> field.toUpperCase(Locale.ENGLISH)));
CsvRecordHandler handler = CsvRecordHandler.of(c -> c.fieldModifier(modifier));
List<CsvRecord> records = CsvReader.builder()
.build(handler, " foo , bar")
.stream()
.toList();
// fields would be: "FOO" and "BAR"
| Modifier and Type | Field and Description |
|---|---|
| public static final FieldModifiers | NOP
Modifier that does not modify anything. |
| public static final FieldModifiers | STRIP
Modifier that modifies the field value with |
| public static final FieldModifiers | TRIM
Modifier that modifies the field value with |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static FieldModifiers | |
| public static FieldModifiers[] |
| NOP | back to summary |
|---|---|
| public static final FieldModifiers NOP Modifier that does not modify anything. | |
| STRIP | back to summary |
|---|---|
| public static final FieldModifiers STRIP Modifier that modifies the field value with | |
| TRIM | back to summary |
|---|---|
| public static final FieldModifiers TRIM Modifier that modifies the field value with | |
| FieldModifiers | back to summary |
|---|---|
| private FieldModifiers() | |
| valueOf | back to summary |
|---|---|
| public static FieldModifiers valueOf(String name) | |
| values | back to summary |
|---|---|
| public static FieldModifiers[] values() | |