FnString is a function hub class containing a lot of static methods returning functions that take a String object as its input. It includes conversions to numbers, calendar and escape functions among others.
Function name | Type | Params | Description |
---|---|---|---|
asciify | Function<String,String> | ASCIIfies a String containing text in (mainly) European languages by removing a set of recognized diacritic symbols and performing a number of transformations. Calling this method is equivalent to calling asciify(AsciifyMode) using the DEFAULT mode. | |
asciify | Function<String,String> | AsciifyMode mode | ASCIIfies a String containing text in (mainly) European languages by removing a set of recognized diacritic symbols and performing a number of transformations, determined by the AsciifyMode parameter. Transformations for AsciifyMode.DEFAULT are:
Transformations for AsciifyMode.UMLAUT_E are the same as DEFAULT with the following differences:
|
capitalize | Function<String,String> | Converts the first letter of each word in the target String to upper case. | |
contains | Function<String,Boolean> | String regex | Determines whether the target String contains a fragment matching the specified regular expression. Regular expressions must conform to the java.util.regex.Pattern format. |
endsWith | Function<String, Boolean> | String suffix | Checkx whether the input String ends with the specified suffix or not. If the suffix is empty, ends with or is equal to the input, it will return true. |
eq | Function<Object,Boolean> | String object | Performs an equals operation between the target object and the specified one. |
escapeCSV | Function<String,String> | Turns a String into a value valid for being a CSV column value, enclosed in double quotes if needed. This method calls org.apache.commons.lang.StringUtils.escapeCsv(). From its definition:
| |
escapeHTML | Function<String,String> | Escapes the characters in a String using HTML entities. This method calls org.apache.commons.lang.StringUtils.escapeHtml(). From its definition:
| |
escapeJavaScript | Function<String,String> | Escapes the characters in a String using JavaScript String rules. This method calls org.apache.commons.lang.StringUtils.escapeJavascript(). From its definition:
Example:
| |
escapeXML | Function<String,String> | Escapes the characters in a String using XML entities. This method calls org.apache.commons.lang.StringUtils.escapeXml(). From its definition:
| |
extractAll | Function<String,List<String>> | String regex | Extracts every substring from the target String that match the specified regular expression. Regular expressions must conform to the java.util.regex.Pattern format. |
extractFirst | Function<String,String> | String regex | Extracts the first substring from the target String that matches the specified regular expression. Regular expressions must conform to the java.util.regex.Pattern format. |
extractLast | Function<String,String> | String regex | Extracts the last substring from the target String that matches the specified regular expression. Regular expressions must conform to the java.util.regex.Pattern format. |
fromHexadecimal | Function<String,String> | Charset charset | Converts the target String from the Hexadecimal representation of its bytes back into a String using the specified Charset. |
greaterOrEqTo | Function<Object,Boolean> | String object | Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0. Both the target and the specified object have to implement Comparable. |
greaterThan | Function<Object,Boolean> | String object | Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0. Both the target and the specified object have to implement Comparable. |
isAlpha | Function<String, Boolean> | Checks if a String contains only unicode letters or not | |
isAlphaSpace | Function<String, Boolean> | Checks if a String contains only unicode letters and spaces or not | |
isBigDecimal | Function<String,Boolean> | Returns true if the input String can be converted into a valid BigDecimal. It uses the default configuration from the JVM (en_US) to check whether the string is valid or not. | |
isBigDecimal | Function<String,Boolean> | Locale locale | Returns true if the input String can be converted into a valid BigDecimal in the given Locale |
isBigDecimal | Function<String,Boolean> | String locale | Returns true if the input String can be converted into a valid BigDecimal in the given Locale specified as a String |
isBigDecimal | Function<String,Boolean> | DecimalPoint decimalPoint | Returns true if the input String can be converted into a valid BigDecimal using the specified decimal point configuration ( DecimalPoint). |
isBigInteger | Function<String,Boolean> | Returns true if the input String can be converted into a valid BigInteger. It uses the default configuration from the JVM (en_US) to check whether the string is valid or not. | |
isBigInteger | Function<String,Boolean> | Locale locale | Returns true if the input String can be converted into a valid BigInteger in the given Locale |
isBigInteger | Function<String,Boolean> | String locale | Returns true if the input String can be converted into a valid BigInteger in the given Locale specified as a String |
isBigInteger | Function<String,Boolean> | DecimalPoint decimalPoint | Returns true if the input String can be converted into a valid BigInteger using the specified decimal point configuration ( DecimalPoint). |
isBigInteger | Function<String,Boolean> | int radix | Returns true if the input String can be converted into a valid BigInteger in the specified radix. It uses the default configuration to check the String |
isBlank | Function<String, Boolean> | Returns whether the target String is blank or not. It calls StringUtils#isBlank(String). The string is blank if it is whitespace, empty ("") or null. | |
isByte | Function<String,Boolean> | Returns true if the input String can be converted into a valid Byte. It uses the default configuration from the JVM (en_US) to check whether the string is valid or not. If this method returns false, FnString#toByte() will throw an exception if called. | |
isByte | Function<String,Boolean> | Locale locale | Returns true if the input String can be converted into a valid Byte in the given Locale. If this method returns false, FnString#toByte(Locale) will throw an exception if called. |
isByte | Function<String,Boolean> | String locale | Returns true if the input String can be converted into a valid Byte in the given Locale specified as a String. If this method returns false, FnString#toByte(String) will throw an exception if called. |
isByte | Function<String,Boolean> | DecimalPoint decimalPoint | Returns true if the input String can be converted into a valid Byte using the specified decimal point configuration ( DecimalPoint). If this method returns false, FnString#toByte(DecimalPoint) will throw an exception if called. |
isByte | Function<String,Boolean> | int radix | Returns true if the input String can be converted into a valid Byte in the specified radix. It uses the default configuration to check the String. If this method returns false, FnString#toByte(int) will throw an exception if called. |
isCalendar | Function<String,Boolean> | String pattern | Checks whether the target String can be converted into a Calendar based on the input parameters or not. If it returns true, FnString#toCalendar(String) can be called safely. Pattern format is that of java.text.SimpleDateFormat. |
isCalendar | Function<String,Boolean> | String pattern Locale locale | Checks whether the target String represents a Calendar or not. If it returns true, FnString#toCalendar(String, Locale) can be called safely. Pattern format is that of java.text.SimpleDateFormat. |
isCalendar | Function<String,Boolean> | String pattern String locale | Returns true if the target String can be converted into a Calendar based on the input parameters. If it returns true, the function ToCalendar#ToCalendar(String, String) can be called safely. Pattern format is that of java.text.SimpleDateFormat. |
isDouble | Function<String,Boolean> | Returns true if the input String can be converted into a valid Double. It uses the default configuration from the JVM (en_US) to check whether the string is valid or not. If this method returns false, FnString#toDouble() will throw an exception if called. | |
isDouble | Function<String,Boolean> | Locale locale | Returns true if the input String can be converted into a valid Double in the given Locale. If this method returns false, FnString#toDouble(Locale) will throw an exception if called. |
isDouble | Function<String,Boolean> | String locale | Returns true if the input String can be converted into a valid Double in the given Locale specified as a String. If this method returns false, FnString#toDouble(String) will throw an exception if called. |
isDouble | Function<String,Boolean> | DecimalPoint decimalPoint | Returns true if the input String can be converted into a valid Double using the specified decimal point configuration ( DecimalPoint). If this method returns false, FnString#toDouble(DecimalPoint) will throw an exception if called. |
isEmpty | Function<String, Boolean> | Returns whether the target String is empty or not. It calls StringUtils#isEmpty(String). The string is empty if it is "" or null | |
isFloat | Function<String,Boolean> | Returns true if the input String can be converted into a valid Float. It uses the default configuration from the JVM (en_US) to check whether the string is valid or not. If this method returns false, FnString#isFloat() will throw an exception if called. | |
isFloat | Function<String,Boolean> | Locale locale | Returns true if the input String can be converted into a valid Float in the given Locale. If this method returns false, FnString#isFloat(Locale) will throw an exception if called. |
isFloat | Function<String,Boolean> | String locale | Returns true if the input String can be converted into a valid Float in the given Locale specified as a String. If this method returns false, FnString#isFloat(String) will throw an exception if called. |
isFloat | Function<String,Boolean> | DecimalPoint decimalPoint | Returns true if the input String can be converted into a valid Float using the specified decimal point configuration ( DecimalPoint). If this method returns false, FnString#isFloat(DecimalPoint) will throw an exception if called. |
isInteger | Function<String,Boolean> | Returns true if the input String can be converted into a valid Integer. It uses the default configuration from the JVM (en_US) to check whether the string is valid or not. If this method returns false, FnString#isInteger() will throw an exception if called. | |
isInteger | Function<String,Boolean> | Locale locale | Returns true if the input String can be converted into a valid Integer in the given Locale. If this method returns false, FnString#isInteger(Locale) will throw an exception if called. |
isInteger | Function<String,Boolean> | String locale | Returns true if the input String can be converted into a valid Integer in the given Locale specified as a String. If this method returns false, FnString#isInteger(String) will throw an exception if called. |
isInteger | Function<String,Boolean> | DecimalPoint decimalPoint | Returns true if the input String can be converted into a valid Integer using the specified decimal point configuration ( DecimalPoint). If this method returns false, FnString#isInteger(DecimalPoint) will throw an exception if called. |
isInteger | Function<String,Boolean> | int radix | Returns true if the input String can be converted into a valid Integer in the specified radix. It uses the default configuration to check the String. If this method returns false, FnString#isInteger(int) will throw an exception if called. |
isLong | Function<String,Boolean> | Returns true if the input String can be converted into a valid Long. It uses the default configuration from the JVM (en_US) to check whether the string is valid or not. If this method returns false, FnString#isLong() will throw an exception if called. | |
isLong | Function<String,Boolean> | Locale locale | Returns true if the input String can be converted into a valid Long in the given Locale. If this method returns false, FnString#isLong(Locale) will throw an exception if called. |
isLong | Function<String,Boolean> | String locale | Returns true if the input String can be converted into a valid Long in the given Locale specified as a String. If this method returns false, FnString#isLong(String) will throw an exception if called. |
isLong | Function<String,Boolean> | DecimalPoint decimalPoint | Returns true if the input String can be converted into a valid Long using the specified decimal point configuration ( DecimalPoint). If this method returns false, FnString#isLong(DecimalPoint) will throw an exception if called. |
isLong | Function<String,Boolean> | int radix | Returns true if the input String can be converted into a valid Long in the specified radix. It uses the default configuration to check the String. If this method returns false, FnString#isLong(int) will throw an exception if called. |
isNotNull | Function<Object,Boolean> | Determines whether the target object is null or not. | |
isNull | Function<Object,Boolean> | Determines whether the target object is null or not. | |
isNumeric | Function<String, Boolean> | Checks if a String contains only unicode digits or not | |
isNumericSpace | Function<String, Boolean> | Checks if a String contains only unicode digits and spaces or not | |
isShort | Function<String,Boolean> | Returns true if the input String can be converted into a valid Short. It uses the default configuration from the JVM (en_US) to check whether the string is valid or not. If this method returns false, FnString#isShort() will throw an exception if called. | |
isShort | Function<String,Boolean> | Locale locale | Returns true if the input String can be converted into a valid Short in the given Locale. If this method returns false, FnString#isShort(Locale) will throw an exception if called. |
isShort | Function<String,Boolean> | String locale | Returns true if the input String can be converted into a valid Short in the given Locale specified as a String. If this method returns false, FnString#isShort(String) will throw an exception if called. |
isShort | Function<String,Boolean> | DecimalPoint decimalPoint | Returns true if the input String can be converted into a valid Short using the specified decimal point configuration ( DecimalPoint). If this method returns false, FnString#isShort(DecimalPoint) will throw an exception if called. |
isShort | Function<String,Boolean> | int radix | Returns true if the input String can be converted into a valid Short in the specified radix. It uses the default configuration to check the String. If this method returns false, FnString#isShort(int) will throw an exception if called. |
join | Function<List<Object>, String> | Joins the string representation of the objects in the list (which might be Strings themselves) into a single String (no separator used). | |
join | Function<List<Object>, String> | String separator | Joins the string representation of the objects in the list (which might be Strings themselves) into a single String using the given separator. |
joinArray | Function<Object[], String> | Joins the string representation of the objects in the array (which might be Strings themselves) into a single String (no separator used). | |
joinArray | Function<Object[], String> | String separator | Joins the string representation of the objects in the array (which might be Strings themselves) into a single String using the given separator. |
lessOrEqTo | Function<Object,Boolean> | String object | Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0. Both the target and the specified object have to implement Comparable. |
lessThan | Function<Object,Boolean> | String object | Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0. Both the target and the specified object have to implement Comparable. |
matchAndExtract | Function<String,String> | String regex int group | Matches the entire target String against the specified regular expression and extracts the specified group from it (as specified by java.util.regex.Matcher. Regular expressions must conform to the java.util.regex.Pattern format. |
matchAndExtractAll | Function<String,List<String>> | String regex int... groups | Matches the entire target String against the specified regular expression and extracts the specified groups from it (as specified by java.util.regex.Matcher. Regular expressions must conform to the java.util.regex.Pattern format. |
matches | Function<String,Boolean> | String regex | Determines whether the target String matches the specified regular expression. Regular expressions must conform to the java.util.regex.Pattern format. |
notEq | Function<Object,Boolean> | String object | Performs an inverse equals operation between the target object and the specified one. |
replaceAll | Function<String,String> | String regex String replacement | Replaces in the target String all substrings matching the specified regular expression with the specified replacement String. Regular expressions must conform to the java.util.regex.Pattern format. |
replaceFirst | Function<String,String> | String regex String replacement | Replaces in the target String the first substring matching the specified regular expression with the specified replacement String. Regular expressions must conform to the java.util.regex.Pattern format. |
replaceLast | Function<String,String> | String regex String replacement | Replaces in the target String the last substring matching the specified regular expression with the specified replacement String. Regular expressions must conform to the java.util.regex.Pattern format. |
reverse | Function<String, String> | It reverses the input String | |
split | Function<String, List<String>> | Splits a String into a list of substrings using a whitespace as a separator. | |
split | Function<String, List<String>> | String separator | Splits a String into a list of substrings using the given separator as a substrings separator (the separator is not included in the elements of the returned list). |
splitAsArray | Function<String, String[]> | Splits a String into an array of substrings using a whitespace as a separator. | |
splitAsArray | Function<String, String[]> | String separator | Splits a String into an array of substrings using the given separator as a substrings separator (the separator is not included in the elements of the returned array). |
startsWith | Function<String, Boolean> | String prefix | It checks whether the input String starts with the specified prefix or not. If the suffix is empty, starts with or is equal to the input, it will return true. |
startsWith | Function<String, Boolean> | String prefix int offset | It checks whether the input substring after the given offset starts with the given prefix or not. |
strip | Function<String,String> | Strips whitespace from both sides of the target String. | |
substring | Function<String, String> | int start | Returns the substring of input from start position (null if null String input). It calls StringUtils#substring(String, int) |
substring | Function<String, String> | int start int end | Returns the substring of input from start position to end position (null if null String input). It calls StringUtils#substring(String, int, int) |
substringAfter | Function<String, String> | String separator | Returns the substring after the first occurrence of the given separator. It calls StringUtils#substringAfter(String, String) |
substringAfterLast | Function<String, String> | String separator | Returns the substring after the last occurrence of the given separator. It calls StringUtils#substringAfterLast(String, String) |
substringBefore | Function<String, String> | String separator | Returns the substring before the first occurrence of the given separator. It calls StringUtils#substringBefore(String, String) |
substringBeforeLast | Function<String, String> | String separator | Returns the substring before the last occurrence of the given separator. It calls StringUtils#substringBeforeLast(String, String) |
substringBetween | Function<String, String> | String tag | Returns the substring between tag and tag or null if there is no match. It calls StringUtils#substringBetween(String, String) |
substringBetween | Function<String, String> | String open String close | Returns the substring between open and close or null if there is no match. It calls StringUtils#substringBetween(String, String, String) |
toBigDecimal | Function<String,BigDecimal> | Converts a String into a BigDecimal, using the default configuration for for decimal point and precision. | |
toBigDecimal | Function<String,BigDecimal> | Locale locale | Converts a String into a BigDecimal, using the specified locale for decimal point and thousands separator configuration. |
toBigDecimal | Function<String,BigDecimal> | String locale | Converts a String into a BigDecimal, using the specified locale for decimal point and thousands separator configuration. Locale is specified as a String (for example: "en_US", "es_ES", etc.) |
toBigDecimal | Function<String,BigDecimal> | DecimalPoint decimalPoint | Converts a String into a BigDecimal, using the specified decimal point configuration ( DecimalPoint). The target String should contain no thousand separators. |
toBigDecimal | Function<String,BigDecimal> | int scale RoundingMode roundingMode | Converts a String into a BigDecimal, using the default configuration for for decimal point and thousands separator and establishing the specified scale. Rounding mode is used for setting the scale to the specified value. |
toBigDecimal | Function<String,BigDecimal> | int scale RoundingMode roundingMode Locale locale | Converts a String into a BigDecimal, using the specified locale for decimal point and thousands separator configuration and establishing the specified scale. Rounding mode is used for setting the scale to the specified value. |
toBigDecimal | Function<String,BigDecimal> | int scale RoundingMode roundingMode String locale | Converts a String into a BigDecimal, using the specified locale for decimal point and thousands separator configuration and establishing the specified scale. Rounding mode is used for setting the scale to the specified value. Locale is specified as a String (for example: "en_US", "es_ES", etc.) |
toBigDecimal | Function<String,BigDecimal> | int scale RoundingMode roundingMode DecimalPoint decimalPoint | Converts a String into a BigDecimal, using the specified decimal point configuration ( DecimalPoint) and establishing the specified scale. Rounding mode is used for setting the scale to the specified value.. The target String should contain no thousand separators. |
toBigInteger | Function<String,BigInteger> | Converts a String into a BigInteger, using the default configuration. Any fractional part of the input String will be removed. | |
toBigInteger | Function<String,BigInteger> | Locale locale | Converts a String into a BigInteger, using the specified locale for decimal point and thousands separator configuration. Any fractional part of the input String will be removed. |
toBigInteger | Function<String,BigInteger> | String locale | Converts a String into a BigInteger, using the specified locale for decimal point and thousands separator configuration. Locale is specified as a String (for example: "en_US", "es_ES", etc.). Any fractional part of the input String will be removed. |
toBigInteger | Function<String,BigInteger> | DecimalPoint decimalPoint | Converts a String into a BigInteger, using the specified decimal point configuration ( DecimalPoint). The target String should contain no thousand separators. Any fractional part of the input String will be removed. |
toBigInteger | Function<String,BigInteger> | int radix | Converts a String into a BigInteger, using the specified radix for computing the equivalent number. The input String must be a valid BigInteger in the given radix (i.e. if radix is 5, 34 would be a valid input whereas 34.3 wouldn't as '.' is not allowed). |
toBigInteger | Function<String,BigInteger> | RoundingMode roundingMode | Converts a String into a BigInteger, using the default configuration for for decimal point and thousands separator. Rounding mode is used for removing the decimal part of the number. Any fractional part of the input String will be removed. |
toBigInteger | Function<String,BigInteger> | RoundingMode roundingMode DecimalPoint decimalPoint | Converts a String into a BigInteger, using the specified decimal point configuration ( DecimalPoint). Rounding mode is used for removing the decimal part of the number. The target String should contain no thousand separators. Any fractional part of the input String will be removed. |
toBigInteger | Function<String,BigInteger> | RoundingMode roundingMode Locale locale | Converts a String into a BigInteger, using the specified locale for determining decimal point. Rounding mode is used for removing the decimal part of the number. Any fractional part of the input String will be removed. |
toBigInteger | Function<String,BigInteger> | RoundingMode roundingMode String locale | Converts a String into a BigInteger, using the specified locale for determining decimal point. Rounding mode is used for removing the decimal part of the number. Locale is specified as a String (for example: "en_US", "es_ES", etc.). Any fractional part of the input String will be removed. |
toBoolean | Function<String,Boolean> | Converts a String into a Boolean. Case is ignored, and all three "true"/"false", "yes"/"no" and "on"/"off" versions are supported. This method calls org.apache.commons.lang.StringUtils.toBooleanObject(). | |
toByte | Function<String,Byte> | Converts a String into a Byte, using the default configuration. Any fractional part of the input String will be removed. The integer part of the input string must be between Byte#MIN_VALUE and Byte#MAX_VALUE | |
toByte | Function<String,Byte> | Locale locale | Converts a String into a Byte, using the specified locale for decimal point and thousands separator configuration. The integer part of the input string must be between Byte#MIN_VALUE and Byte#MAX_VALUE |
toByte | Function<String,Byte> | String locale | Converts a String into a Byte, using the specified locale for decimal point and thousands separator configuration. Locale is specified as a String (for example: "en_US", "es_ES", etc.). The integer part of the input string must be between Byte#MIN_VALUE and Byte#MAX_VALUE |
toByte | Function<String,Byte> | DecimalPoint decimalPoint | Converts a String into a Byte, using the specified decimal point configuration ( DecimalPoint). The target String should contain no thousand separators. The integer part of the input string must be between Byte#MIN_VALUE and Byte#MAX_VALUE |
toByte | Function<String,Byte> | int radix | Converts a String into a Byte, using the specified radix for computing the equivalent number. The input String must be a valid Byte in the given radix |
toByte | Function<String,Byte> | RoundingMode roundingMode | Converts a String into a Byte, using the default configuration for for decimal point and thousands separator. Rounding mode is used for removing the decimal part of the number. The integer part of the input string must be between Byte#MIN_VALUE and Byte#MAX_VALUE |
toByte | Function<String,Byte> | RoundingMode roundingMode DecimalPoint decimalPoint | Converts a String into a Byte, using the specified decimal point configuration ( DecimalPoint). Rounding mode is used for removing the decimal part of the number. The target String should contain no thousand separators. The integer part of the input string must be between Byte#MIN_VALUE and Byte#MAX_VALUE |
toByte | Function<String,Byte> | RoundingMode roundingMode Locale locale | Converts a String into a Byte, using the specified locale for determining decimal point. Rounding mode is used for removing the decimal part of the number. The integer part of the input string must be between Byte#MIN_VALUE and Byte#MAX_VALUE |
toByte | Function<String,Byte> | RoundingMode roundingMode String locale | Converts a String into a Byte, using the specified locale for determining decimal point. Rounding mode is used for removing the decimal part of the number. Locale is specified as a String (for example: "en_US", "es_ES", etc.). The integer part of the input string must be between Byte#MIN_VALUE and Byte#MAX_VALUE |
toCalendar | Function<String,Calendar> | String pattern | Converts the target String to a java.util.Calendar by applying the specified pattern. Pattern format is that of java.text.SimpleDateFormat. |
toCalendar | Function<String,Calendar> | String pattern Locale locale | Converts the target String to a java.util.Calendar by applying the specified pattern and locale. The locale is needed for correctly parsing month names. Pattern format is that of java.text.SimpleDateFormat. |
toCalendar | Function<String,Calendar> | String pattern String locale | Converts the target String to a java.util.Calendar by applying the specified pattern and locale. The locale is needed for correctly parsing month names. Pattern format is that of java.text.SimpleDateFormat. |
toDate | Function<String,Date> | String pattern | Converts the target String to a java.util.Date by applying the specified pattern. Pattern format is that of java.text.SimpleDateFormat. |
toDate | Function<String,Date> | String pattern Locale locale | Converts the target String to a java.util.Date by applying the specified pattern and locale. The locale is needed for correctly parsing month names. Pattern format is that of java.text.SimpleDateFormat. |
toDate | Function<String,Date> | String pattern String locale | Converts the target String to a java.util.Date by applying the specified pattern and locale. The locale is needed for correctly parsing month names. Pattern format is that of java.text.SimpleDateFormat. |
toDouble | Function<String,Double> | Converts a String into a Double, using the default configuration for for decimal point and precision. The input string must be between Double#MIN_VALUE and Double#MAX_VALUE | |
toDouble | Function<String,Double> | Locale locale | Converts a String into a Double, using the specified locale for decimal point and thousands separator configuration. The input string must be between Double#MIN_VALUE and Double#MAX_VALUE |
toDouble | Function<String,Double> | String locale | Converts a String into a Double, using the specified locale for decimal point and thousands separator configuration. Locale is specified as a String (for example: "en_US", "es_ES", etc.). The input string must be between Double#MIN_VALUE and Double#MAX_VALUE |
toDouble | Function<String,Double> | DecimalPoint decimalPoint | Converts a String into a Double, using the specified decimal point configuration ( DecimalPoint). The target String should contain no thousand separators. The input string must be between Double#MIN_VALUE and Double#MAX_VALUE |
toDouble | Function<String,Double> | int scale RoundingMode roundingMode | Converts a String into a Double, using the default configuration for for decimal point and thousands separator and establishing the specified scale. Rounding mode is used for setting the scale to the specified value. The input string must be between Double#MIN_VALUE and Double#MAX_VALUE |
toDouble | Function<String,Double> | int scale RoundingMode roundingMode Locale locale | Converts a String into a Double, using the specified locale for decimal point and thousands separator configuration and establishing the specified scale. Rounding mode is used for setting the scale to the specified value. The input string must be between Double#MIN_VALUE and Double#MAX_VALUE |
toDouble | Function<String,Double> | int scale RoundingMode roundingMode String locale | Converts a String into a Double, using the specified locale for decimal point and thousands separator configuration and establishing the specified scale. Rounding mode is used for setting the scale to the specified value. Locale is specified as a String (for example: "en_US", "es_ES", etc.). The input string must be between Double#MIN_VALUE and Double#MAX_VALUE |
toDouble | Function<String,Double> | int scale RoundingMode roundingMode DecimalPoint decimalPoint | Converts a String into a Double, using the specified decimal point configuration ( DecimalPoint) and establishing the specified scale. Rounding mode is used for setting the scale to the specified value. The input string must be between Double#MIN_VALUE and Double#MAX_VALUE |
toFloat | Function<String,Float> | Converts a String into a Float, using the default configuration for for decimal point and precision. The input string must be between Float#MIN_VALUE and Float#MAX_VALUE | |
toFloat | Function<String,Float> | Locale locale | Converts a String into a Float, using the specified locale for decimal point and thousands separator configuration. The input string must be between Float#MIN_VALUE and Float#MAX_VALUE |
toFloat | Function<String,Float> | String locale | Converts a String into a Float, using the specified locale for decimal point and thousands separator configuration. Locale is specified as a String (for example: "en_US", "es_ES", etc.). The input string must be between Float#MIN_VALUE and Float#MAX_VALUE |
toFloat | Function<String,Float> | DecimalPoint decimalPoint | Converts a String into a Float, using the specified decimal point configuration ( DecimalPoint). The target String should contain no thousand separators. The input string must be between Float#MIN_VALUE and Float#MAX_VALUE |
toFloat | Function<String,Float> | int scale RoundingMode roundingMode | Converts a String into a Float, using the default configuration for for decimal point and thousands separator and establishing the specified scale. Rounding mode is used for setting the scale to the specified value. The input string must be between Float#MIN_VALUE and Float#MAX_VALUE |
toFloat | Function<String,Float> | int scale RoundingMode roundingMode Locale locale | Converts a String into a Float, using the specified locale for decimal point and thousands separator configuration and establishing the specified scale. Rounding mode is used for setting the scale to the specified value. The input string must be between Float#MIN_VALUE and Float#MAX_VALUE |
toFloat | Function<String,Float> | int scale RoundingMode roundingMode String locale | Converts a String into a Float, using the specified locale for decimal point and thousands separator configuration and establishing the specified scale. Rounding mode is used for setting the scale to the specified value. Locale is specified as a String (for example: "en_US", "es_ES", etc.). The input string must be between Float#MIN_VALUE and Float#MAX_VALUE |
toFloat | Function<String,Float> | int scale RoundingMode roundingMode DecimalPoint decimalPoint | Converts a String into a Float, using the specified decimal point configuration ( DecimalPoint) and establishing the specified scale. Rounding mode is used for setting the scale to the specified value.. The target String should contain no thousand separators. The input string must be between Float#MIN_VALUE and Float#MAX_VALUE |
toHexadecimal | Function<String,String> | Charset charset | Converts the target String into the Hexadecimal representation of its bytes using the specified Charset to obtain them (the bytes). |
toInteger | Function<String,Integer> | Converts a String into an Integer, using the default configuration. The integer part of the input string must be between Integer#MIN_VALUE and Integer#MAX_VALUE | |
toInteger | Function<String,Integer> | Locale locale | Converts a String into an Integer, using the specified locale for decimal point and thousands separator configuration. The integer part of the input string must be between Integer#MIN_VALUE and Integer#MAX_VALUE |
toInteger | Function<String,Integer> | String locale | Converts a String into an Integer, using the specified locale for decimal point and thousands separator configuration. Locale is specified as a String (for example: "en_US", "es_ES", etc.). The integer part of the input string must be between Integer#MIN_VALUE and Integer#MAX_VALUE |
toInteger | Function<String,Integer> | DecimalPoint decimalPoint | Converts a String into an Integer, using the specified decimal point configuration ( DecimalPoint). The target String should contain no thousand separators. The integer part of the input string must be between Integer#MIN_VALUE and Integer#MAX_VALUE |
toInteger | Function<String,Integer> | int radix | Converts a String into an Integer, using the specified radix for computing the equivalent number. The input String must be a valid Integer in the given radix (i.e. if radix is 5, 34 would be a valid input whereas 34.3 wouldn't as '.' is not allowed) |
toInteger | Function<String,Integer> | RoundingMode roundingMode | Converts a String into an Integer, using the default configuration for for decimal point and thousands separator. Rounding mode is used for removing the decimal part of the number. The integer part of the input string must be between Integer#MIN_VALUE and Integer#MAX_VALUE |
toInteger | Function<String,Integer> | RoundingMode roundingMode DecimalPoint decimalPoint | Converts a String into an Integer, using the specified decimal point configuration ( DecimalPoint). Rounding mode is used for removing the decimal part of the number. The target String should contain no thousand separators. The integer part of the input string must be between Integer#MIN_VALUE and Integer#MAX_VALUE |
toInteger | Function<String,Integer> | RoundingMode roundingMode Locale locale | Converts a String into an Integer, using the specified locale for determining decimal point. Rounding mode is used for removing the decimal part of the number. The integer part of the input string must be between Integer#MIN_VALUE and Integer#MAX_VALUE |
toInteger | Function<String,Integer> | RoundingMode roundingMode String locale | Converts a String into an Integer, using the specified locale for determining decimal point. Rounding mode is used for removing the decimal part of the number. Locale is specified as a String (for example: "en_US", "es_ES", etc.). The integer part of the input string must be between Integer#MIN_VALUE and Integer#MAX_VALUE |
toLong | Function<String,Long> | Converts a String into a Long, using the default configuration. The integer part of the input string must be between Long#MIN_VALUE and Long#MAX_VALUE | |
toLong | Function<String,Long> | Locale locale | Converts a String into a Long, using the specified locale for decimal point and thousands separator configuration. The integer part of the input string must be between Long#MIN_VALUE and Long#MAX_VALUE |
toLong | Function<String,Long> | String locale | Converts a String into a Long, using the specified locale for decimal point and thousands separator configuration. Locale is specified as a String (for example: "en_US", "es_ES", etc.). The integer part of the input string must be between Long#MIN_VALUE and Long#MAX_VALUE |
toLong | Function<String,Long> | DecimalPoint decimalPoint | Converts a String into a Long, using the specified decimal point configuration ( DecimalPoint). The target String should contain no thousand separators. The integer part of the input string must be between Long#MIN_VALUE and Long#MAX_VALUE |
toLong | Function<String,Long> | int radix | Converts a String into a Long, using the specified radix for computing the equivalent number. The input String must be a valid Long in the given radix (i.e. if radix is 5, 34 would be a valid input whereas 34.3 wouldn't as '.' is not allowed) |
toLong | Function<String,Long> | RoundingMode roundingMode | Converts a String into a Long, using the default configuration for for decimal point and thousands separator. Rounding mode is used for removing the decimal part of the number. The integer part of the input string must be between Long#MIN_VALUE and Long#MAX_VALUE |
toLong | Function<String,Long> | RoundingMode roundingMode DecimalPoint decimalPoint | Converts a String into a Long, using the specified decimal point configuration ( DecimalPoint). Rounding mode is used for removing the decimal part of the number. The target String should contain no thousand separators. The integer part of the input string must be between Long#MIN_VALUE and Long#MAX_VALUE |
toLong | Function<String,Long> | RoundingMode roundingMode Locale locale | Converts a String into a Long, using the specified locale for determining decimal point. Rounding mode is used for removing the decimal part of the number. The integer part of the input string must be between Long#MIN_VALUE and Long#MAX_VALUE |
toLong | Function<String,Long> | RoundingMode roundingMode String locale | Converts a String into a Long, using the specified locale for determining decimal point. Rounding mode is used for removing the decimal part of the number. Locale is specified as a String (for example: "en_US", "es_ES", etc.). The integer part of the input string must be between Long#MIN_VALUE and Long#MAX_VALUE |
toLowerCase | Function<String,String> | Converts the target String to lower case. | |
toShort | Function<String,Short> | Converts a String into a Short, using the default configuration. The integer part of the input string must be between Short#MIN_VALUE and Short#MAX_VALUE | |
toShort | Function<String,Short> | Locale locale | Converts a String into a Short, using the specified locale for decimal point and thousands separator configuration. The integer part of the input string must be between Short#MIN_VALUE and Short#MAX_VALUE |
toShort | Function<String,Short> | String locale | Converts a String into a Short, using the specified locale for decimal point and thousands separator configuration. Locale is specified as a String (for example: "en_US", "es_ES", etc.). The integer part of the input string must be between Short#MIN_VALUE and Short#MAX_VALUE |
toShort | Function<String,Short> | DecimalPoint decimalPoint | Converts a String into a Short, using the specified decimal point configuration ( DecimalPoint). The target String should contain no thousand separators. The integer part of the input string must be between Short#MIN_VALUE and Short#MAX_VALUE |
toShort | Function<String,Short> | int radix | Converts a String into a Short, using the specified radix for computing the equivalent number. The input String must be a valid Short in the given radix (i.e. if radix is 5, 34 would be a valid input whereas 34.3 wouldn't as '.' is not allowed) |
toShort | Function<String,Short> | RoundingMode roundingMode | Converts a String into a Short, using the default configuration for for decimal point and thousands separator. Rounding mode is used for removing the decimal part of the number. The integer part of the input string must be between Short#MIN_VALUE and Short#MAX_VALUE |
toShort | Function<String,Short> | RoundingMode roundingMode DecimalPoint decimalPoint | Converts a String into a Short, using the specified decimal point configuration ( DecimalPoint). Rounding mode is used for removing the decimal part of the number. The target String should contain no thousand separators. The integer part of the input string must be between Short#MIN_VALUE and Short#MAX_VALUE |
toShort | Function<String,Short> | RoundingMode roundingMode Locale locale | Converts a String into a Short, using the specified locale for determining decimal point. Rounding mode is used for removing the decimal part of the number. The integer part of the input string must be between Short#MIN_VALUE and Short#MAX_VALUE |
toShort | Function<String,Short> | RoundingMode roundingMode String locale | Converts a String into a Short, using the specified locale for determining decimal point. Rounding mode is used for removing the decimal part of the number. Locale is specified as a String (for example: "en_US", "es_ES", etc.). The integer part of the input string must be between Short#MIN_VALUE and Short#MAX_VALUE |
toUpperCase | Function<String,String> | Converts the target String to upper case. | |
trim | Function<String,String> | Removes control characters (char <= 32) from both ends of the target String. | |
unCapitalize | Function<String,String> | Converts the first letter of each word in the target String to lowercase | |
unescapeCSV | Function<String,String> | Removes escaping from a String escaped for a CSV column. This method calls org.apache.commons.lang.StringUtils.unescapeCsv(). From its definition:
| |
unescapeHTML | Function<String,String> | Unescapes a string containing entity escapes to a string containing the actual Unicode characters corresponding to the escapes. Supports HTML 4.0 entities. This method calls org.apache.commons.lang.StringUtils.unescapeHtml(). From its definition:
| |
unescapeJavaScript | Function<String,String> | Unescapes any JavaScript literals found in the String. For example, it will turn a sequence of '\' and 'n' into a newline character, unless the '\' is preceded by another '\'. This method calls org.apache.commons.lang.StringUtils.unescapeJavascript(). | |
unescapeXML | Function<String,String> | Unescapes a string containing XML entity escapes to a string containing the actual Unicode characters corresponding to the escapes. This method calls org.apache.commons.lang.StringUtils.unescapeXml(). From its definition:
|