- java.lang.Object
-
- de.siegmar.fastcsv.reader.FieldModifiers
-
public final class FieldModifiers extends java.lang.Object
Provides some commonFieldModifier
implementations.Example usage:
-
-
Field Summary
Fields Modifier and Type Field Description static FieldModifier
NOP
Modifier that does not modify anything.static FieldModifier
STRIP
Modifier that modifies the field value withString.strip()
.static FieldModifier
TRIM
Modifier that modifies the field value withString.trim()
.
-
Constructor Summary
Constructors Modifier Constructor Description private
FieldModifiers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FieldModifier
lower(java.util.Locale locale)
Builds modifier that modifies the field value withString.toLowerCase(Locale)
.static FieldModifier
upper(java.util.Locale locale)
Builds modifier that modifies the field value withString.toUpperCase(Locale)
.
-
-
-
Field Detail
-
NOP
public static final FieldModifier NOP
Modifier that does not modify anything.
-
TRIM
public static final FieldModifier TRIM
Modifier that modifies the field value withString.trim()
. Comments are not modified.
-
STRIP
public static final FieldModifier STRIP
Modifier that modifies the field value withString.strip()
. Comments are not modified.
-
-
Method Detail
-
lower
public static FieldModifier lower(java.util.Locale locale)
Builds modifier that modifies the field value withString.toLowerCase(Locale)
. Comments are not modified.- Parameters:
locale
- use the case transformation rules for this locale- Returns:
- a new field modifier that converts the input to lower-case.
-
upper
public static FieldModifier upper(java.util.Locale locale)
Builds modifier that modifies the field value withString.toUpperCase(Locale)
. Comments are not modified.- Parameters:
locale
- use the case transformation rules for this locale- Returns:
- a new field modifier that converts the input to upper-case.
-
-