Enum StringFunctions

    • Enum Constant Detail

      • UPPER_CASE

        public static final StringFunctions UPPER_CASE
        Transforms a string into upper case format
      • LOWER_CASE

        public static final StringFunctions LOWER_CASE
        Transforms a string into lower case format
      • TITLE_CASE

        public static final StringFunctions TITLE_CASE
        Transforms a string into title case format
      • TRIM

        public static final StringFunctions TRIM
        Trims a function using unicode whitespace and invisible characters
      • DIACRITICS_NORMALIZATION

        public static final StringFunctions DIACRITICS_NORMALIZATION
        Normalizes the string using by removing diacritics
      • LEFT_TRIM

        public static final StringFunctions LEFT_TRIM
        left trims strings of whitespace
      • RIGHT_TRIM

        public static final StringFunctions RIGHT_TRIM
        Right trims strings of whitespace
      • NULL_TO_EMPTY

        public static final StringFunctions NULL_TO_EMPTY
        Converts nulls to empty strings
    • Method Detail

      • values

        public static StringFunctions[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (StringFunctions c : StringFunctions.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static StringFunctions valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • REGEX_REPLACE

        public static SerializableFunction<String,​String> REGEX_REPLACE​(String pattern,
                                                                              String replacement)
        Creates a function that performs a regular expression replacement on a string
        Parameters:
        pattern - The regex pattern
        replacement - The replacement text
        Returns:
        The function
      • REGEX_REPLACE

        public static SerializableFunction<String,​String> REGEX_REPLACE​(Pattern pattern,
                                                                              String replacement)
        Creates a function that performs a regular expression replacement on a string
        Parameters:
        pattern - The regex pattern
        replacement - The replacement text
        Returns:
        The function