de.siegmar.fastcsv.reader.SimpleFieldModifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastcsv Show documentation
Show all versions of fastcsv Show documentation
Lightning-fast, dependency-free CSV library that conforms to RFC standards.
package de.siegmar.fastcsv.reader;
/**
* A functional interface for modifying CSV fields in a simple way (with reduced functionality).
*
* When implementing this interface, comments are ignored (not modified), by default.
*
* @see FieldModifiers
*/
@FunctionalInterface
public interface SimpleFieldModifier extends FieldModifier {
/**
* Gets called for every single field (that is not a comment).
*
* @param field the field value, never {@code null}
* @return the modified field value (must not be {@code null})
*/
String modify(String field);
@Override
default String modify(final long startingLineNumber, final int fieldIdx, final boolean quoted, final String field) {
return modify(field);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy