- java.lang.Object
-
- de.siegmar.fastcsv.reader.FieldModifiers
-
public final class FieldModifiers extends java.lang.ObjectProvides some commonFieldModifierimplementations.Example usage:
-
-
Field Summary
Fields Modifier and Type Field Description static FieldModifierNOPModifier that does not modify anything.static FieldModifierSTRIPModifier that modifies the field value withString.strip().static FieldModifierTRIMModifier that modifies the field value withString.trim().
-
Constructor Summary
Constructors Modifier Constructor Description privateFieldModifiers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FieldModifierlower(java.util.Locale locale)Builds modifier that modifies the field value withString.toLowerCase(Locale).static FieldModifierupper(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.
-
-