org.op4j.functions
Class FnString

Object
  extended by org.op4j.functions.FnString

public final class FnString
extends Object

Since:
1.0
Author:
Soraya Sánchez, Daniel Fernández

Nested Class Summary
static class FnString.AsciifyMode
           
 
Method Summary
static Function<String,String> asciify()
           ASCIIfies a String containing text in (mainly) European languages by removing a set of recognized diacritic symbols and performing a number of transformations.
static Function<String,String> asciify(FnString.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 FnString.AsciifyMode parameter.
static Function<String,Boolean> canBeBigDecimal()
           Returns true if the input String can be converted into a valid BigDecimal.
static Function<String,Boolean> canBeBigDecimal(DecimalPoint decimalPoint)
           Returns true if the input String can be converted into a valid BigDecimal using the specified decimal point configuration (DecimalPoint).
static Function<String,Boolean> canBeBigDecimal(Locale locale)
           Returns true if the input String can be converted into a valid BigDecimal in the given Locale
static Function<String,Boolean> canBeBigDecimal(String locale)
           Returns true if the input String can be converted into a valid BigDecimal in the given Locale specified as a String
static Function<String,Boolean> canBeBigInteger()
           Returns true if the input String can be converted into a valid BigInteger.
static Function<String,Boolean> canBeBigInteger(DecimalPoint decimalPoint)
           Returns true if the input String can be converted into a valid BigInteger using the specified decimal point configuration (DecimalPoint).
static Function<String,Boolean> canBeBigInteger(int radix)
           Returns true if the input String can be converted into a valid BigInteger in the specified radix.
static Function<String,Boolean> canBeBigInteger(Locale locale)
           Returns true if the input String can be converted into a valid BigInteger in the given Locale
static Function<String,Boolean> canBeBigInteger(String locale)
           Returns true if the input String can be converted into a valid BigInteger in the given Locale specified as a String
static Function<String,Boolean> canBeByte()
           Returns true if the input String can be converted into a valid Byte.
static Function<String,Boolean> canBeByte(DecimalPoint decimalPoint)
           Returns true if the input String can be converted into a valid Byte using the specified decimal point configuration (DecimalPoint).
static Function<String,Boolean> canBeByte(int radix)
           Returns true if the input String can be converted into a valid Byte in the specified radix.
static Function<String,Boolean> canBeByte(Locale locale)
           Returns true if the input String can be converted into a valid Byte in the given Locale.
static Function<String,Boolean> canBeByte(String locale)
           Returns true if the input String can be converted into a valid Byte in the given Locale specified as a String.
static Function<String,Boolean> canBeDouble()
           Returns true if the input String can be converted into a valid Double.
static Function<String,Boolean> canBeDouble(DecimalPoint decimalPoint)
           Returns true if the input String can be converted into a valid Double using the specified decimal point configuration (DecimalPoint).
static Function<String,Boolean> canBeDouble(Locale locale)
           Returns true if the input String can be converted into a valid Double in the given Locale.
static Function<String,Boolean> canBeDouble(String locale)
           Returns true if the input String can be converted into a valid Double in the given Locale specified as a String.
static Function<String,Boolean> canBeFloat()
           Returns true if the input String can be converted into a valid Float.
static Function<String,Boolean> canBeFloat(DecimalPoint decimalPoint)
           Returns true if the input String can be converted into a valid Float using the specified decimal point configuration (DecimalPoint).
static Function<String,Boolean> canBeFloat(Locale locale)
           Returns true if the input String can be converted into a valid Float in the given Locale.
static Function<String,Boolean> canBeFloat(String locale)
           Returns true if the input String can be converted into a valid Float in the given Locale specified as a String.
static Function<String,Boolean> canBeInteger()
           Returns true if the input String can be converted into a valid Integer.
static Function<String,Boolean> canBeInteger(DecimalPoint decimalPoint)
           Returns true if the input String can be converted into a valid Integer using the specified decimal point configuration (DecimalPoint).
static Function<String,Boolean> canBeInteger(int radix)
           Returns true if the input String can be converted into a valid Integer in the specified radix.
static Function<String,Boolean> canBeInteger(Locale locale)
           Returns true if the input String can be converted into a valid Integer in the given Locale.
static Function<String,Boolean> canBeInteger(String locale)
           Returns true if the input String can be converted into a valid Integer in the given Locale specified as a String.
static Function<String,Boolean> canBeLong()
           Returns true if the input String can be converted into a valid Long.
static Function<String,Boolean> canBeLong(DecimalPoint decimalPoint)
           Returns true if the input String can be converted into a valid Long using the specified decimal point configuration (DecimalPoint).
static Function<String,Boolean> canBeLong(int radix)
           Returns true if the input String can be converted into a valid Long in the specified radix.
static Function<String,Boolean> canBeLong(Locale locale)
           Returns true if the input String can be converted into a valid Long in the given Locale.
static Function<String,Boolean> canBeLong(String locale)
           Returns true if the input String can be converted into a valid Long in the given Locale specified as a String.
static Function<String,Boolean> canBeShort()
           Returns true if the input String can be converted into a valid Short.
static Function<String,Boolean> canBeShort(DecimalPoint decimalPoint)
           Returns true if the input String can be converted into a valid Short using the specified decimal point configuration (DecimalPoint).
static Function<String,Boolean> canBeShort(int radix)
           Returns true if the input String can be converted into a valid Short in the specified radix.
static Function<String,Boolean> canBeShort(Locale locale)
           Returns true if the input String can be converted into a valid Short in the given Locale.
static Function<String,Boolean> canBeShort(String locale)
           Returns true if the input String can be converted into a valid Short in the given Locale specified as a String.
static Function<String,String> capitalize()
           Converts the first letter of each word in the target String to upper case.
static Function<String,Boolean> contains(String regex)
           Determines whether the target String contains a fragment matching the specified regular expression.
static Function<String,Boolean> endsWith(String suffix)
           Checkx whether the input String ends with the specified suffix or not.
static Function<Object,Boolean> eq(String object)
           Performs an equals operation between the target object and the specified one.
static Function<String,String> escapeCSV()
           Turns a String into a value valid for being a CSV column value, enclosed in double quotes if needed.
static Function<String,String> escapeHTML()
           Escapes the characters in a String using HTML entities.
static Function<String,String> escapeJavaScript()
           Escapes the characters in a String using JavaScript String rules.
static Function<String,String> escapeXML()
           Escapes the characters in a String using XML entities.
static Function<String,List<String>> extractAll(String regex)
           Extracts every substring from the target String that match the specified regular expression.
static Function<String,String> extractFirst(String regex)
           Extracts the first substring from the target String that matches the specified regular expression.
static Function<String,String> extractLast(String regex)
           Extracts the last substring from the target String that matches the specified regular expression.
static Function<String,String> fromHexadecimal(Charset charset)
           Converts the target String from the Hexadecimal representation of its bytes back into a String using the specified Charset.
static Function<Object,Boolean> greaterOrEqTo(String object)
           Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0.
static Function<Object,Boolean> greaterThan(String object)
           Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0.
static Function<String,Boolean> isAlpha()
           Checks if a String contains only unicode letters or not
static Function<String,Boolean> isAlphaSpace()
           Checks if a String contains only unicode letters and spaces or not
static Function<String,Boolean> isBigDecimal()
          Deprecated. use canBeBigDecimal() instead. This method will be removed in version 1.3
static Function<String,Boolean> isBigDecimal(DecimalPoint decimalPoint)
          Deprecated. use canBeBigDecimal(DecimalPoint) instead. This method will be removed in version 1.3
static Function<String,Boolean> isBigDecimal(Locale locale)
          Deprecated. use canBeBigDecimal(Locale) instead. This method will be removed in version 1.3
static Function<String,Boolean> isBigDecimal(String locale)
          Deprecated. use canBeBigDecimal(String) instead. This method will be removed in version 1.3
static Function<String,Boolean> isBigInteger()
          Deprecated. use canBeBigInteger() instead. This method will be removed in version 1.3
static Function<String,Boolean> isBigInteger(DecimalPoint decimalPoint)
          Deprecated. use canBeBigInteger(DecimalPoint) instead. This method will be removed in version 1.3
static Function<String,Boolean> isBigInteger(int radix)
          Deprecated. use canBeBigInteger(int) instead. This method will be removed in version 1.3
static Function<String,Boolean> isBigInteger(Locale locale)
          Deprecated. use canBeBigInteger(Locale) instead. This method will be removed in version 1.3
static Function<String,Boolean> isBigInteger(String locale)
          Deprecated. use canBeBigInteger(String) instead. This method will be removed in version 1.3
static Function<String,Boolean> isBlank()
           Returns whether the target String is blank or not.
static Function<String,Boolean> isByte()
          Deprecated. use canBeByte() instead. This method will be removed in version 1.3
static Function<String,Boolean> isByte(DecimalPoint decimalPoint)
          Deprecated. use canBeByte(DecimalPoint) instead. This method will be removed in version 1.3
static Function<String,Boolean> isByte(int radix)
          Deprecated. use canBeByte(int) instead. This method will be removed in version 1.3
static Function<String,Boolean> isByte(Locale locale)
          Deprecated. use canBeByte(Locale) instead. This method will be removed in version 1.3
static Function<String,Boolean> isByte(String locale)
          Deprecated. use canBeByte(String) instead. This method will be removed in version 1.3
static Function<String,Boolean> isCalendar(String pattern)
           Checks whether the target String can be converted into a Calendar based on the input parameters or not.
static Function<String,Boolean> isCalendar(String pattern, Locale locale)
           Checks whether the target String represents a Calendar or not.
static Function<String,Boolean> isCalendar(String pattern, String locale)
           Returns true if the target String can be converted into a Calendar based on the input parameters.
static Function<String,Boolean> isDouble()
          Deprecated. use canBeDouble() instead. This method will be removed in version 1.3
static Function<String,Boolean> isDouble(DecimalPoint decimalPoint)
          Deprecated. use canBeDouble(DecimalPoint) instead. This method will be removed in version 1.3
static Function<String,Boolean> isDouble(Locale locale)
          Deprecated. use canBeDouble(Locale) instead. This method will be removed in version 1.3
static Function<String,Boolean> isDouble(String locale)
          Deprecated. use canBeDouble(String) instead. This method will be removed in version 1.3
static Function<String,Boolean> isEmpty()
           Returns whether the target String is empty or not.
static Function<String,Boolean> isFloat()
          Deprecated. use canBeFloat() instead. This method will be removed in version 1.3
static Function<String,Boolean> isFloat(DecimalPoint decimalPoint)
          Deprecated. use canBeFloat(DecimalPoint) instead. This method will be removed in version 1.3
static Function<String,Boolean> isFloat(Locale locale)
          Deprecated. use canBeFloat(Locale) instead. This method will be removed in version 1.3
static Function<String,Boolean> isFloat(String locale)
          Deprecated. use canBeFloat(String) instead. This method will be removed in version 1.3
static Function<String,Boolean> isInteger()
          Deprecated. use canBeInteger() instead. This method will be removed in version 1.3
static Function<String,Boolean> isInteger(DecimalPoint decimalPoint)
          Deprecated. use canBeInteger(DecimalPoint) instead. This method will be removed in version 1.3
static Function<String,Boolean> isInteger(int radix)
          Deprecated. use canBeInteger(int) instead. This method will be removed in version 1.3
static Function<String,Boolean> isInteger(Locale locale)
          Deprecated. use canBeInteger(Locale) instead. This method will be removed in version 1.3
static Function<String,Boolean> isInteger(String locale)
          Deprecated. use canBeInteger(String) instead. This method will be removed in version 1.3
static Function<String,Boolean> isLong()
          Deprecated. use canBeLong() instead. This method will be removed in version 1.3
static Function<String,Boolean> isLong(DecimalPoint decimalPoint)
          Deprecated. use canBeLong(DecimalPoint) instead. This method will be removed in version 1.3
static Function<String,Boolean> isLong(int radix)
          Deprecated. use canBeLong(int) instead. This method will be removed in version 1.3
static Function<String,Boolean> isLong(Locale locale)
          Deprecated. use canBeLong(Locale) instead. This method will be removed in version 1.3
static Function<String,Boolean> isLong(String locale)
          Deprecated. use canBeLong(String) instead. This method will be removed in version 1.3
static Function<Object,Boolean> isNotNull()
           Determines whether the target object is null or not.
static Function<Object,Boolean> isNull()
           Determines whether the target object is null or not.
static Function<String,Boolean> isNumeric()
           Checks if a String contains only unicode digits or not
static Function<String,Boolean> isNumericSpace()
           Checks if a String contains only unicode digits and spaces or not
static Function<String,Boolean> isShort()
          Deprecated. use canBeShort() instead. This method will be removed in version 1.3
static Function<String,Boolean> isShort(DecimalPoint decimalPoint)
          Deprecated. use canBeShort(DecimalPoint) instead. This method will be removed in version 1.3
static Function<String,Boolean> isShort(int radix)
          Deprecated. use canBeShort(int) instead. This method will be removed in version 1.3
static Function<String,Boolean> isShort(Locale locale)
          Deprecated. use canBeShort(Locale) instead. This method will be removed in version 1.3
static Function<String,Boolean> isShort(String locale)
          Deprecated. use canBeShort(String) instead. This method will be removed in version 1.3
static Function<String,Boolean> isValidBigDecimal()
           Returns true if the input String can be converted into a valid BigDecimal.
static Function<String,Boolean> isValidBigDecimal(DecimalPoint decimalPoint)
           Returns true if the input String can be converted into a valid BigDecimal using the specified decimal point configuration (DecimalPoint).
static Function<String,Boolean> isValidBigDecimal(Locale locale)
           Returns true if the input String can be converted into a valid BigDecimal in the given Locale.
static Function<String,Boolean> isValidBigDecimal(String locale)
           Returns true if the input String can be converted into a valid BigDecimal in the given Locale specified as a String.
static Function<String,Boolean> isValidBigInteger()
           Returns true if the input String can be converted into a valid BigInteger.
static Function<String,Boolean> isValidBigInteger(int radix)
           Returns true if the input String can be converted into a valid BigInteger in the specified radix.
static Function<String,Boolean> isValidBigInteger(Locale locale)
           Returns true if the input String can be converted into a valid BigInteger in the given Locale.That is, if it represents a non decimal number.
static Function<String,Boolean> isValidBigInteger(String locale)
           Returns true if the input String can be converted into a valid BigInteger in the given Locale specified as a String.
static Function<String,Boolean> isValidByte()
           Returns true if the input String represents a Byte, that is, it it represents a non decimal number between Byte.MIN_VALUE and Byte.MAX_VALUE.
static Function<String,Boolean> isValidByte(int radix)
           Returns true if the input String represents a Byte, that is, it it represents a non decimal number between Byte.MIN_VALUE and Byte.MAX_VALUE.
static Function<String,Boolean> isValidByte(Locale locale)
           Returns true if the input String represents a Byte, that is, it it represents a non decimal number between Byte.MIN_VALUE and Byte.MAX_VALUE.
static Function<String,Boolean> isValidByte(String locale)
           Returns true if the input String represents a Byte, that is, it it represents a non decimal number between Byte.MIN_VALUE and Byte.MAX_VALUE.
static Function<String,Boolean> isValidDouble()
           Returns true if the input String can be converted into a valid Double.
static Function<String,Boolean> isValidDouble(DecimalPoint decimalPoint)
           Returns true if the input String can be converted into a valid Double using the specified decimal point configuration (DecimalPoint).
static Function<String,Boolean> isValidDouble(Locale locale)
           Returns true if the input String can be converted into a valid Double in the given Locale.
static Function<String,Boolean> isValidDouble(String locale)
           Returns true if the input String can be converted into a valid Double in the given Locale specified as a String.
static Function<String,Boolean> isValidFloat()
           Returns true if the input String can be converted into a valid Float.
static Function<String,Boolean> isValidFloat(DecimalPoint decimalPoint)
           Returns true if the input String can be converted into a valid Float using the specified decimal point configuration (DecimalPoint).
static Function<String,Boolean> isValidFloat(Locale locale)
           Returns true if the input String can be converted into a valid Float in the given Locale.
static Function<String,Boolean> isValidFloat(String locale)
           Returns true if the input String can be converted into a valid Float in the given Locale specified as a String.
static Function<String,Boolean> isValidInteger()
           Returns true if the input String represents an Integer, that is, it it represents a non decimal number between Integer.MIN_VALUE and Integer.MAX_VALUE.
static Function<String,Boolean> isValidInteger(int radix)
           Returns true if the input String represents an Integer, that is, it it represents a non decimal number between Integer.MIN_VALUE and Integer.MAX_VALUE.
static Function<String,Boolean> isValidInteger(Locale locale)
           Returns true if the input String represents an Integer, that is, it it represents a non decimal number between Integer.MIN_VALUE and Integer.MAX_VALUE.
static Function<String,Boolean> isValidInteger(String locale)
           Returns true if the input String represents an Integer, that is, it it represents a non decimal number between Integer.MIN_VALUE and Integer.MAX_VALUE.
static Function<String,Boolean> isValidLong()
           Returns true if the input String represents an Long, that is, it it represents a non decimal number between Long.MIN_VALUE and Long.MAX_VALUE.
static Function<String,Boolean> isValidLong(int radix)
           Returns true if the input String represents an Long, that is, it it represents a non decimal number between Long.MIN_VALUE and Long.MAX_VALUE.
static Function<String,Boolean> isValidLong(Locale locale)
           Returns true if the input String represents an Long, that is, it it represents a non decimal number between Long.MIN_VALUE and Long.MAX_VALUE.
static Function<String,Boolean> isValidLong(String locale)
           Returns true if the input String represents an Long, that is, it it represents a non decimal number between Long.MIN_VALUE and Long.MAX_VALUE.
static Function<String,Boolean> isValidShort()
           Returns true if the input String represents a Short, that is, it it represents a non decimal number between Short.MIN_VALUE and Short.MAX_VALUE.
static Function<String,Boolean> isValidShort(int radix)
           Returns true if the input String represents a Short, that is, it it represents a non decimal number between Short.MIN_VALUE and Short.MAX_VALUE.
static Function<String,Boolean> isValidShort(Locale locale)
           Returns true if the input String represents a Short, that is, it it represents a non decimal number between Short.MIN_VALUE and Short.MAX_VALUE.
static Function<String,Boolean> isValidShort(String locale)
           Returns true if the input String represents a Short, that is, it it represents a non decimal number between Short.MIN_VALUE and Short.MAX_VALUE.
static Function<List<Object>,String> join()
           Joins the string representation of the objects in the list (which might be Strings themselves) into a single String (no separator used).
static Function<List<Object>,String> join(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.
static Function<Object[],String> joinArray()
           Joins the string representation of the objects in the array (which might be Strings themselves) into a single String (no separator used).
static Function<Object[],String> joinArray(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.
static Function<Object,Boolean> lessOrEqTo(String object)
           Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0.
static Function<Object,Boolean> lessThan(String object)
           Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0.
static Function<String,String> matchAndExtract(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.
static Function<String,List<String>> matchAndExtractAll(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.
static Function<String,Boolean> matches(String regex)
           Determines whether the target String matches the specified regular expression.
static Function<Object,Boolean> notEq(String object)
           Performs an inverse equals operation between the target object and the specified one.
static Function<String,String> replaceAll(String regex, String replacement)
           Replaces in the target String all substrings matching the specified regular expression with the specified replacement String.
static Function<String,String> replaceFirst(String regex, String replacement)
           Replaces in the target String the first substring matching the specified regular expression with the specified replacement String.
static Function<String,String> replaceLast(String regex, String replacement)
           Replaces in the target String the last substring matching the specified regular expression with the specified replacement String.
static Function<String,String> reverse()
           It reverses the input String
static Function<String,List<String>> split()
           Splits a String into a list of substrings using a whitespace as a separator.
static Function<String,List<String>> split(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).
static Function<String,String[]> splitAsArray()
           Splits a String into an array of substrings using a whitespace as a separator.
static Function<String,String[]> splitAsArray(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).
static Function<String,Boolean> startsWith(String prefix)
           It checks whether the input String starts with the specified prefix or not.
static Function<String,Boolean> startsWith(String prefix, int offset)
           It checks whether the input substring after the given offset starts with the given prefix or not.
static Function<String,String> strip()
           Strips whitespace from both sides of the target String.
static Function<String,String> substring(int start)
           Returns the substring of input from start position (null if null String input).
static Function<String,String> substring(int start, int end)
           Returns the substring of input from start position to end position (null if null String input).
static Function<String,String> substringAfter(String separator)
           Returns the substring after the first occurrence of the given separator.
static Function<String,String> substringAfterLast(String separator)
           Returns the substring after the last occurrence of the given separator.
static Function<String,String> substringBefore(String separator)
           Returns the substring before the first occurrence of the given separator.
static Function<String,String> substringBeforeLast(String separator)
           Returns the substring before the last occurrence of the given separator.
static Function<String,String> substringBetween(String tag)
           Returns the substring between tag and tag or null if there is no match.
static Function<String,String> substringBetween(String open, String close)
           Returns the substring between open and close or null if there is no match.
static Function<String,BigDecimal> toBigDecimal()
           Converts a String into a BigDecimal, using the default configuration for for decimal point and precision.
static Function<String,BigDecimal> toBigDecimal(DecimalPoint decimalPoint)
           Converts a String into a BigDecimal, using the specified decimal point configuration (DecimalPoint).
static Function<String,BigDecimal> toBigDecimal(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.
static Function<String,BigDecimal> toBigDecimal(int scale, RoundingMode roundingMode, DecimalPoint decimalPoint)
           Converts a String into a BigDecimal, using the specified decimal point configuration (DecimalPoint) and establishing the specified scale.
static Function<String,BigDecimal> toBigDecimal(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.
static Function<String,BigDecimal> toBigDecimal(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.
static Function<String,BigDecimal> toBigDecimal(Locale locale)
           Converts a String into a BigDecimal, using the specified locale for decimal point and thousands separator configuration.
static Function<String,BigDecimal> toBigDecimal(String locale)
           Converts a String into a BigDecimal, using the specified locale for decimal point and thousands separator configuration.
static Function<String,BigInteger> toBigInteger()
           Converts a String into a BigInteger, using the default configuration.
static Function<String,BigInteger> toBigInteger(DecimalPoint decimalPoint)
           Converts a String into a BigInteger, using the specified decimal point configuration (DecimalPoint).
static Function<String,BigInteger> toBigInteger(int radix)
           Converts a String into a BigInteger, using the specified radix for computing the equivalent number.
static Function<String,BigInteger> toBigInteger(Locale locale)
           Converts a String into a BigInteger, using the specified locale for decimal point and thousands separator configuration.
static Function<String,BigInteger> toBigInteger(RoundingMode roundingMode)
           Converts a String into a BigInteger, using the default configuration for for decimal point and thousands separator.
static Function<String,BigInteger> toBigInteger(RoundingMode roundingMode, DecimalPoint decimalPoint)
           Converts a String into a BigInteger, using the specified decimal point configuration (DecimalPoint).
static Function<String,BigInteger> toBigInteger(RoundingMode roundingMode, Locale locale)
           Converts a String into a BigInteger, using the specified locale for determining decimal point.
static Function<String,BigInteger> toBigInteger(RoundingMode roundingMode, String locale)
           Converts a String into a BigInteger, using the specified locale for determining decimal point.
static Function<String,BigInteger> toBigInteger(String locale)
           Converts a String into a BigInteger, using the specified locale for decimal point and thousands separator configuration.
static Function<String,Boolean> toBoolean()
           Converts a String into a Boolean.
static Function<String,Byte> toByte()
           Converts a String into a Byte, using the default configuration.
static Function<String,Byte> toByte(DecimalPoint decimalPoint)
           Converts a String into a Byte, using the specified decimal point configuration (DecimalPoint).
static Function<String,Byte> toByte(int radix)
           Converts a String into a Byte, using the specified radix for computing the equivalent number.
static Function<String,Byte> toByte(Locale locale)
           Converts a String into a Byte, using the specified locale for decimal point and thousands separator configuration.
static Function<String,Byte> toByte(RoundingMode roundingMode)
           Converts a String into a Byte, using the default configuration for for decimal point and thousands separator.
static Function<String,Byte> toByte(RoundingMode roundingMode, DecimalPoint decimalPoint)
           Converts a String into a Byte, using the specified decimal point configuration (DecimalPoint).
static Function<String,Byte> toByte(RoundingMode roundingMode, Locale locale)
           Converts a String into a Byte, using the specified locale for determining decimal point.
static Function<String,Byte> toByte(RoundingMode roundingMode, String locale)
           Converts a String into a Byte, using the specified locale for determining decimal point.
static Function<String,Byte> toByte(String locale)
           Converts a String into a Byte, using the specified locale for decimal point and thousands separator configuration.
static Function<String,Calendar> toCalendar(String pattern)
           Converts the target String to a java.util.Calendar by applying the specified pattern.
static Function<String,Calendar> toCalendar(String pattern, Locale locale)
           Converts the target String to a java.util.Calendar by applying the specified pattern and locale.
static Function<String,Calendar> toCalendar(String pattern, String locale)
           Converts the target String to a java.util.Calendar by applying the specified pattern and locale.
static Function<String,Date> toDate(String pattern)
           Converts the target String to a java.util.Date by applying the specified pattern.
static Function<String,Date> toDate(String pattern, Locale locale)
           Converts the target String to a java.util.Date by applying the specified pattern and locale.
static Function<String,Date> toDate(String pattern, String locale)
           Converts the target String to a java.util.Date by applying the specified pattern and locale.
static Function<String,Double> toDouble()
           Converts a String into a Double, using the default configuration for for decimal point and precision.
static Function<String,Double> toDouble(DecimalPoint decimalPoint)
           Converts a String into a Double, using the specified decimal point configuration (DecimalPoint).
static Function<String,Double> toDouble(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.
static Function<String,Double> toDouble(int scale, RoundingMode roundingMode, DecimalPoint decimalPoint)
           Converts a String into a Double, using the specified decimal point configuration (DecimalPoint) and establishing the specified scale.
static Function<String,Double> toDouble(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.
static Function<String,Double> toDouble(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.
static Function<String,Double> toDouble(Locale locale)
           Converts a String into a Double, using the specified locale for decimal point and thousands separator configuration.
static Function<String,Double> toDouble(String locale)
           Converts a String into a Double, using the specified locale for decimal point and thousands separator configuration.
static Function<String,Float> toFloat()
           Converts a String into a Float, using the default configuration for for decimal point and precision.
static Function<String,Float> toFloat(DecimalPoint decimalPoint)
           Converts a String into a Float, using the specified decimal point configuration (DecimalPoint).
static Function<String,Float> toFloat(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.
static Function<String,Float> toFloat(int scale, RoundingMode roundingMode, DecimalPoint decimalPoint)
           Converts a String into a Float, using the specified decimal point configuration (DecimalPoint) and establishing the specified scale.
static Function<String,Float> toFloat(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.
static Function<String,Float> toFloat(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.
static Function<String,Float> toFloat(Locale locale)
           Converts a String into a Float, using the specified locale for decimal point and thousands separator configuration.
static Function<String,Float> toFloat(String locale)
           Converts a String into a Float, using the specified locale for decimal point and thousands separator configuration.
static Function<String,String> toHexadecimal(Charset charset)
           Converts the target String into the Hexadecimal representation of its bytes using the specified Charset to obtain them (the bytes).
static Function<String,Integer> toInteger()
           Converts a String into an Integer, using the default configuration.
static Function<String,Integer> toInteger(DecimalPoint decimalPoint)
           Converts a String into an Integer, using the specified decimal point configuration (DecimalPoint).
static Function<String,Integer> toInteger(int radix)
           Converts a String into an Integer, using the specified radix for computing the equivalent number.
static Function<String,Integer> toInteger(Locale locale)
           Converts a String into an Integer, using the specified locale for decimal point and thousands separator configuration.
static Function<String,Integer> toInteger(RoundingMode roundingMode)
           Converts a String into an Integer, using the default configuration for for decimal point and thousands separator.
static Function<String,Integer> toInteger(RoundingMode roundingMode, DecimalPoint decimalPoint)
           Converts a String into an Integer, using the specified decimal point configuration (DecimalPoint).
static Function<String,Integer> toInteger(RoundingMode roundingMode, Locale locale)
           Converts a String into an Integer, using the specified locale for determining decimal point.
static Function<String,Integer> toInteger(RoundingMode roundingMode, String locale)
           Converts a String into an Integer, using the specified locale for determining decimal point.
static Function<String,Integer> toInteger(String locale)
           Converts a String into an Integer, using the specified locale for decimal point and thousands separator configuration.
static Function<String,Long> toLong()
           Converts a String into a Long, using the default configuration.
static Function<String,Long> toLong(DecimalPoint decimalPoint)
           Converts a String into a Long, using the specified decimal point configuration (DecimalPoint).
static Function<String,Long> toLong(int radix)
           Converts a String into a Long, using the specified radix for computing the equivalent number.
static Function<String,Long> toLong(Locale locale)
           Converts a String into a Long, using the specified locale for decimal point and thousands separator configuration.
static Function<String,Long> toLong(RoundingMode roundingMode)
           Converts a String into a Long, using the default configuration for for decimal point and thousands separator.
static Function<String,Long> toLong(RoundingMode roundingMode, DecimalPoint decimalPoint)
           Converts a String into a Long, using the specified decimal point configuration (DecimalPoint).
static Function<String,Long> toLong(RoundingMode roundingMode, Locale locale)
           Converts a String into a Long, using the specified locale for determining decimal point.
static Function<String,Long> toLong(RoundingMode roundingMode, String locale)
           Converts a String into a Long, using the specified locale for determining decimal point.
static Function<String,Long> toLong(String locale)
           Converts a String into a Long, using the specified locale for decimal point and thousands separator configuration.
static Function<String,String> toLowerCase()
           Converts the target String to lower case.
static Function<String,Short> toShort()
           Converts a String into a Short, using the default configuration.
static Function<String,Short> toShort(DecimalPoint decimalPoint)
           Converts a String into a Short, using the specified decimal point configuration (DecimalPoint).
static Function<String,Short> toShort(int radix)
           Converts a String into a Short, using the specified radix for computing the equivalent number.
static Function<String,Short> toShort(Locale locale)
           Converts a String into a Short, using the specified locale for decimal point and thousands separator configuration.
static Function<String,Short> toShort(RoundingMode roundingMode)
           Converts a String into a Short, using the default configuration for for decimal point and thousands separator.
static Function<String,Short> toShort(RoundingMode roundingMode, DecimalPoint decimalPoint)
           Converts a String into a Short, using the specified decimal point configuration (DecimalPoint).
static Function<String,Short> toShort(RoundingMode roundingMode, Locale locale)
           Converts a String into a Short, using the specified locale for determining decimal point.
static Function<String,Short> toShort(RoundingMode roundingMode, String locale)
           Converts a String into a Short, using the specified locale for determining decimal point.
static Function<String,Short> toShort(String locale)
           Converts a String into a Short, using the specified locale for decimal point and thousands separator configuration.
static Function<String,String> toUpperCase()
           Converts the target String to upper case.
static Function<String,String> trim()
           Removes control characters (char <= 32) from both ends of the target String.
static Function<String,String> unCapitalize()
           Converts the first letter of each word in the target String to lowercase
static Function<String,String> unescapeCSV()
           Removes escaping from a String escaped for a CSV column.
static Function<String,String> unescapeHTML()
           Unescapes a string containing entity escapes to a string containing the actual Unicode characters corresponding to the escapes.
static Function<String,String> unescapeJavaScript()
           Unescapes any JavaScript literals found in the String.
static Function<String,String> unescapeXML()
           Unescapes a string containing XML entity escapes to a string containing the actual Unicode characters corresponding to the escapes.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toBigDecimal

public static final Function<String,BigDecimal> toBigDecimal()

Converts a String into a BigDecimal, using the default configuration for for decimal point and precision.

Returns:
the resulting BigDecimal object

toBigDecimal

public static final Function<String,BigDecimal> toBigDecimal(Locale locale)

Converts a String into a BigDecimal, using the specified locale for decimal point and thousands separator configuration.

Parameters:
locale - the locale defining the way in which the number was written
Returns:
the resulting BigDecimal object

toBigDecimal

public static final Function<String,BigDecimal> toBigDecimal(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.)

Parameters:
locale - the locale defining the way in which the number was written
Returns:
the resulting BigDecimal object

toBigDecimal

public static final Function<String,BigDecimal> toBigDecimal(DecimalPoint decimalPoint)

Converts a String into a BigDecimal, using the specified decimal point configuration (DecimalPoint). The target String should contain no thousand separators.

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
the resulting BigDecimal object

toBigDecimal

public static final Function<String,BigDecimal> toBigDecimal(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.

Parameters:
scale - the desired scale for the resulting BigDecimal object
roundingMode - the rounding mode to be used when setting the scale
Returns:
the resulting BigDecimal object

toBigDecimal

public static final Function<String,BigDecimal> toBigDecimal(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.

Parameters:
scale - the desired scale for the resulting BigDecimal object
roundingMode - the rounding mode to be used when setting the scale
locale - the locale defining the way in which the number was written
Returns:
the resulting BigDecimal object

toBigDecimal

public static final Function<String,BigDecimal> toBigDecimal(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.)

Parameters:
scale - the desired scale for the resulting BigDecimal object
roundingMode - the rounding mode to be used when setting the scale
locale - the locale defining the way in which the number was written
Returns:
the resulting BigDecimal object

toBigDecimal

public static final Function<String,BigDecimal> toBigDecimal(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.

Parameters:
scale - the desired scale for the resulting BigDecimal object
roundingMode - the rounding mode to be used when setting the scale
decimalPoint - the decimal point being used by the String
Returns:
the resulting BigDecimal object

toBigInteger

public static final Function<String,BigInteger> toBigInteger()

Converts a String into a BigInteger, using the default configuration. Any fractional part of the input String will be removed.

Returns:
the resulting BigInteger object

toBigInteger

public static final Function<String,BigInteger> toBigInteger(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.

Parameters:
locale - the locale defining the way in which the number was written
Returns:
the resulting BigInteger object

toBigInteger

public static final Function<String,BigInteger> toBigInteger(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.

Parameters:
locale - the locale defining the way in which the number was written
Returns:
the resulting BigInteger object

toBigInteger

public static final Function<String,BigInteger> toBigInteger(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.

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
the resulting BigInteger object

toBigInteger

public static final Function<String,BigInteger> toBigInteger(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).

Parameters:
radix - the radix in which the number is supposedly represented in the String
Returns:
the resulting BigInteger object

toBigInteger

public static final Function<String,BigInteger> toBigInteger(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.

Parameters:
roundingMode - the rounding mode to be used when setting the scale
Returns:
the resulting BigInteger object

toBigInteger

public static final Function<String,BigInteger> toBigInteger(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.

Parameters:
roundingMode - the rounding mode to be used when setting the scale
decimalPoint - the decimal point being used by the String
Returns:
the resulting BigInteger object

toBigInteger

public static final Function<String,BigInteger> toBigInteger(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.

Parameters:
roundingMode - the rounding mode to be used when setting the scale
locale - the locale defining the way in which the number was written
Returns:
the resulting BigInteger object

toBigInteger

public static final Function<String,BigInteger> toBigInteger(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.

Parameters:
roundingMode - the rounding mode to be used when setting the scale
locale - the locale defining the way in which the number was written
Returns:
the resulting BigInteger object

toDouble

public static final Function<String,Double> toDouble()

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

Returns:
the resulting Double object

toDouble

public static final Function<String,Double> toDouble(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

Parameters:
locale - the locale defining the way in which the number was written
Returns:
the resulting Double object

toDouble

public static final Function<String,Double> toDouble(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

Parameters:
locale - the locale defining the way in which the number was written
Returns:
the resulting Double object

toDouble

public static final Function<String,Double> toDouble(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

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
the resulting Double object

toDouble

public static final Function<String,Double> toDouble(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

Parameters:
scale - the desired scale for the resulting Double object
roundingMode - the rounding mode to be used when setting the scale
Returns:
the resulting Double object

toDouble

public static final Function<String,Double> toDouble(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

Parameters:
scale - the desired scale for the resulting Double object
roundingMode - the rounding mode to be used when setting the scale
locale - the locale defining the way in which the number was written
Returns:
the resulting Double object

toDouble

public static final Function<String,Double> toDouble(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

Parameters:
scale - the desired scale for the resulting Double object
roundingMode - the rounding mode to be used when setting the scale
locale - the locale defining the way in which the number was written
Returns:
the resulting Double object

toDouble

public static final Function<String,Double> toDouble(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

Parameters:
scale - the desired scale for the resulting Double object
roundingMode - the rounding mode to be used when setting the scale
decimalPoint - the decimal point being used by the String
Returns:
the resulting Double object

toFloat

public static final Function<String,Float> toFloat()

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

Returns:
the resulting Float object

toFloat

public static final Function<String,Float> toFloat(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

Parameters:
locale - the locale defining the way in which the number was written
Returns:
the resulting Float object

toFloat

public static final Function<String,Float> toFloat(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

Parameters:
locale - the locale defining the way in which the number was written
Returns:
the resulting Float object

toFloat

public static final Function<String,Float> toFloat(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

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
the resulting Float object

toFloat

public static final Function<String,Float> toFloat(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

Parameters:
scale - the desired scale for the resulting Float object
roundingMode - the rounding mode to be used when setting the scale
Returns:
the resulting Float object

toFloat

public static final Function<String,Float> toFloat(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

Parameters:
scale - the desired scale for the resulting Float object
roundingMode - the rounding mode to be used when setting the scale
locale - the locale defining the way in which the number was written
Returns:
the resulting Float object

toFloat

public static final Function<String,Float> toFloat(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

Parameters:
scale - the desired scale for the resulting Float object
roundingMode - the rounding mode to be used when setting the scale
locale - the locale defining the way in which the number was written
Returns:
the resulting Float object

toFloat

public static final Function<String,Float> toFloat(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

Parameters:
scale - the desired scale for the resulting Float object
roundingMode - the rounding mode to be used when setting the scale
decimalPoint - the decimal point being used by the String
Returns:
the resulting Float object

toLong

public static final Function<String,Long> toLong()

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

Returns:
the resulting Long object

toLong

public static final Function<String,Long> toLong(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

Parameters:
locale - the locale defining the way in which the number was written
Returns:
the resulting Long object

toLong

public static final Function<String,Long> toLong(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

Parameters:
locale - the locale defining the way in which the number was written
Returns:
the resulting Long object

toLong

public static final Function<String,Long> toLong(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

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
the resulting Long object

toLong

public static final Function<String,Long> toLong(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)

Parameters:
radix - the radix in which the number is supposedly represented in the String
Returns:
the resulting Long object

toLong

public static final Function<String,Long> toLong(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

Parameters:
roundingMode - the rounding mode to be used when setting the scale
Returns:
the resulting Long object

toLong

public static final Function<String,Long> toLong(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

Parameters:
roundingMode - the rounding mode to be used when setting the scale
decimalPoint - the decimal point being used by the String
Returns:
the resulting Long object

toLong

public static final Function<String,Long> toLong(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

Parameters:
roundingMode - the rounding mode to be used when setting the scale
locale - the locale defining the way in which the number was written
Returns:
the resulting Long object

toLong

public static final Function<String,Long> toLong(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

Parameters:
roundingMode - the rounding mode to be used when setting the scale
locale - the locale defining the way in which the number was written
Returns:
the resulting Long object

toInteger

public static final Function<String,Integer> toInteger()

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

Returns:
the resulting Integer object

toInteger

public static final Function<String,Integer> toInteger(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

Parameters:
locale - the locale defining the way in which the number was written
Returns:
the resulting Integer object

toInteger

public static final Function<String,Integer> toInteger(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

Parameters:
locale - the locale defining the way in which the number was written
Returns:
the resulting Integer object

toInteger

public static final Function<String,Integer> toInteger(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

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
the resulting Integer object

toInteger

public static final Function<String,Integer> toInteger(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)

Parameters:
radix - the radix in which the number is supposedly represented in the String
Returns:
the resulting Integer object

toInteger

public static final Function<String,Integer> toInteger(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

Parameters:
roundingMode - the rounding mode to be used when setting the scale
Returns:
the resulting Integer object

toInteger

public static final Function<String,Integer> toInteger(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

Parameters:
roundingMode - the rounding mode to be used when setting the scale
decimalPoint - the decimal point being used by the String
Returns:
the resulting Integer object

toInteger

public static final Function<String,Integer> toInteger(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

Parameters:
roundingMode - the rounding mode to be used when setting the scale
locale - the locale defining the way in which the number was written
Returns:
the resulting Integer object

toInteger

public static final Function<String,Integer> toInteger(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

Parameters:
roundingMode - the rounding mode to be used when setting the scale
locale - the locale defining the way in which the number was written
Returns:
the resulting Integer object

toShort

public static final Function<String,Short> toShort()

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

Returns:
the resulting Short object

toShort

public static final Function<String,Short> toShort(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

Parameters:
locale - the locale defining the way in which the number was written
Returns:
the resulting Short object

toShort

public static final Function<String,Short> toShort(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

Parameters:
locale - the locale defining the way in which the number was written
Returns:
the resulting Short object

toShort

public static final Function<String,Short> toShort(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

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
the resulting Short object

toShort

public static final Function<String,Short> toShort(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)

Parameters:
radix - the radix in which the number is supposedly represented in the String
Returns:
the resulting Short object

toShort

public static final Function<String,Short> toShort(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

Parameters:
roundingMode - the rounding mode to be used when setting the scale
Returns:
the resulting Short object

toShort

public static final Function<String,Short> toShort(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

Parameters:
roundingMode - the rounding mode to be used when setting the scale
decimalPoint - the decimal point being used by the String
Returns:
the resulting Short object

toShort

public static final Function<String,Short> toShort(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

Parameters:
roundingMode - the rounding mode to be used when setting the scale
locale - the locale defining the way in which the number was written
Returns:
the resulting Short object

toShort

public static final Function<String,Short> toShort(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

Parameters:
roundingMode - the rounding mode to be used when setting the scale
locale - the locale defining the way in which the number was written
Returns:
the resulting Short object

toByte

public static final Function<String,Byte> toByte()

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

Returns:
the resulting Byte object

toByte

public static final Function<String,Byte> toByte(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

Parameters:
locale - the locale defining the way in which the number was written
Returns:
the resulting Byte object

toByte

public static final Function<String,Byte> toByte(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

Parameters:
locale - the locale defining the way in which the number was written
Returns:
the resulting Byte object

toByte

public static final Function<String,Byte> toByte(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

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
the resulting Byte object

toByte

public static final Function<String,Byte> toByte(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

Parameters:
radix - the radix in which the number is supposedly represented in the String
Returns:
the resulting Byte object

toByte

public static final Function<String,Byte> toByte(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

Parameters:
roundingMode - the rounding mode to be used when setting the scale
Returns:
the resulting Byte object

toByte

public static final Function<String,Byte> toByte(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

Parameters:
roundingMode - the rounding mode to be used when setting the scale
decimalPoint - the decimal point being used by the String
Returns:
the resulting Byte object

toByte

public static final Function<String,Byte> toByte(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

Parameters:
roundingMode - the rounding mode to be used when setting the scale
locale - the locale defining the way in which the number was written
Returns:
the resulting Byte object

toByte

public static final Function<String,Byte> toByte(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

Parameters:
roundingMode - the rounding mode to be used when setting the scale
locale - the locale defining the way in which the number was written
Returns:
the resulting Byte object

toBoolean

public static final Function<String,Boolean> toBoolean()

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().

Returns:
the resulting Boolean object

escapeCSV

public static final Function<String,String> escapeCSV()

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:

Returns:
the resulting String.

unescapeCSV

public static final Function<String,String> unescapeCSV()

Removes escaping from a String escaped for a CSV column.

This method calls org.apache.commons.lang.StringUtils.unescapeCsv(). From its definition:

Returns:
the resulting String.

escapeXML

public static final Function<String,String> escapeXML()

Escapes the characters in a String using XML entities.

This method calls org.apache.commons.lang.StringUtils.escapeXml(). From its definition:

Returns:
the resulting String.

unescapeXML

public static final Function<String,String> unescapeXML()

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:

Returns:
the resulting String.

escapeHTML

public static final Function<String,String> escapeHTML()

Escapes the characters in a String using HTML entities.

This method calls org.apache.commons.lang.StringUtils.escapeHtml(). From its definition:

Returns:
the resulting String.

unescapeHTML

public static final Function<String,String> unescapeHTML()

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:

Returns:
the resulting String.

escapeJavaScript

public static final Function<String,String> escapeJavaScript()

Escapes the characters in a String using JavaScript String rules.

This method calls org.apache.commons.lang.StringUtils.escapeJavascript(). From its definition:

Example:

Returns:
the resulting String.

unescapeJavaScript

public static final Function<String,String> unescapeJavaScript()

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().

Returns:
the resulting String.

toHexadecimal

public static final Function<String,String> toHexadecimal(Charset charset)

Converts the target String into the Hexadecimal representation of its bytes using the specified Charset to obtain them (the bytes).

Parameters:
charset - the charset to be used
Returns:
the resulting String.

fromHexadecimal

public static final Function<String,String> fromHexadecimal(Charset charset)

Converts the target String from the Hexadecimal representation of its bytes back into a String using the specified Charset.

Parameters:
charset - the charset to be used
Returns:
the resulting String.

toUpperCase

public static final Function<String,String> toUpperCase()

Converts the target String to upper case.

Returns:
the resulting String.

toLowerCase

public static final Function<String,String> toLowerCase()

Converts the target String to lower case.

Returns:
the resulting String

unCapitalize

public static final Function<String,String> unCapitalize()

Converts the first letter of each word in the target String to lowercase

Returns:
the resulting String

capitalize

public static final Function<String,String> capitalize()

Converts the first letter of each word in the target String to upper case.

Returns:
the resulting String

trim

public static final Function<String,String> trim()

Removes control characters (char <= 32) from both ends of the target String.

Returns:
the resulting String

strip

public static final Function<String,String> strip()

Strips whitespace from both sides of the target String.

Returns:
the resulting String

isCalendar

public static final Function<String,Boolean> isCalendar(String pattern)

Checks whether the target String can be converted into a Calendar based on the input parameters or not. If it returns true, toCalendar(String) can be called safely.

Pattern format is that of java.text.SimpleDateFormat.

Parameters:
pattern - the pattern to be used
Returns:
true if the target String represents a Calendar, false otherwise

isCalendar

public static final Function<String,Boolean> isCalendar(String pattern,
                                                        Locale locale)

Checks whether the target String represents a Calendar or not. If it returns true, toCalendar(String, Locale) can be called safely.

Pattern format is that of java.text.SimpleDateFormat.

Parameters:
pattern - the pattern to be used.
locale - the locale which will be used for parsing month names
Returns:
true if the target String represents a Calendar, false otherwise

isCalendar

public static final Function<String,Boolean> isCalendar(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.

Parameters:
pattern - the pattern to be used (ex: "en_US", "es_ES", etc.)
locale - the locale which will be used for parsing month names
Returns:
true if it can be converted, false otherwise

toCalendar

public static final Function<String,Calendar> toCalendar(String pattern)

Converts the target String to a java.util.Calendar by applying the specified pattern.

Pattern format is that of java.text.SimpleDateFormat.

Parameters:
pattern - the pattern to be used
Returns:
the resulting Calendar

toCalendar

public static final Function<String,Calendar> toCalendar(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.

Parameters:
pattern - the pattern to be used.
locale - the locale which will be used for parsing month names
Returns:
the resulting Calendar

toCalendar

public static final Function<String,Calendar> toCalendar(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.

Parameters:
pattern - the pattern to be used (ex: "en_US", "es_ES", etc.)
locale - the locale which will be used for parsing month names
Returns:
the resulting Calendar

toDate

public static final Function<String,Date> toDate(String pattern)

Converts the target String to a java.util.Date by applying the specified pattern.

Pattern format is that of java.text.SimpleDateFormat.

Parameters:
pattern - the pattern to be used
Returns:
the resulting Date

toDate

public static final Function<String,Date> toDate(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.

Parameters:
pattern - the pattern to be used.
locale - the locale which will be used for parsing month names
Returns:
the resulting Date

toDate

public static final Function<String,Date> toDate(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.

Parameters:
pattern - the pattern to be used (ex: "en_US", "es_ES", etc.)
locale - the locale which will be used for parsing month names
Returns:
the resulting Date

eq

public static final Function<Object,Boolean> eq(String object)

Performs an equals operation between the target object and the specified one.

Parameters:
object - the object that will be passed as a parameter to the "equals" operation.
Returns:
the boolean result of the "equals" operation.

notEq

public static final Function<Object,Boolean> notEq(String object)

Performs an inverse equals operation between the target object and the specified one.

Parameters:
object - the object that will be passed as a parameter to the "equals" operation.
Returns:
the boolean result of the inverse of an "equals" operation.

isNull

public static final Function<Object,Boolean> isNull()

Determines whether the target object is null or not.

Returns:
true if the target object is null, false if not.

isNotNull

public static final Function<Object,Boolean> isNotNull()

Determines whether the target object is null or not.

Returns:
false if the target object is null, true if not.

lessThan

public static final Function<Object,Boolean> lessThan(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.

Parameters:
object - the object to compare to the target
Returns:
true if target is less than the specified object, false if not

lessOrEqTo

public static final Function<Object,Boolean> lessOrEqTo(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.

Parameters:
object - the object to compare to the target
Returns:
true if target is less or equal to the specified object, false if not

greaterThan

public static final Function<Object,Boolean> greaterThan(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.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater than the specified object, false if not

greaterOrEqTo

public static final Function<Object,Boolean> greaterOrEqTo(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.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater or equal to the specified object, false if not

matches

public static final Function<String,Boolean> matches(String regex)

Determines whether the target String matches the specified regular expression.

Regular expressions must conform to the java.util.regex.Pattern format.

Parameters:
regex - the regular expression to match against
Returns:
true if the target String matches the regex, false if not.

contains

public static final Function<String,Boolean> contains(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.

Parameters:
regex - the regular expression to match against
Returns:
true if the target String contains a fragment matching the regex, false if not.

extractFirst

public static final Function<String,String> extractFirst(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.

Parameters:
regex - the regular expression to match against
Returns:
the matching substring.

extractLast

public static final Function<String,String> extractLast(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.

Parameters:
regex - the regular expression to match against
Returns:
the matching substring.

extractAll

public static final Function<String,List<String>> extractAll(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.

Parameters:
regex - the regular expression to match against
Returns:
a List with the matching substrings

matchAndExtract

public static final Function<String,String> matchAndExtract(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.

Parameters:
regex - the regular expression to match against
group - the group number to be extracted
Returns:
the substring matching the group number

matchAndExtractAll

public static final Function<String,List<String>> matchAndExtractAll(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.

Parameters:
regex - the regular expression to match against
groups - the group numbers to be extracted
Returns:
a List with the substrings matching the group number

replaceFirst

public static final Function<String,String> replaceFirst(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.

Parameters:
regex - the regular expression to match against
replacement - the replacement string
Returns:
the resulting String

replaceLast

public static final Function<String,String> replaceLast(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.

Parameters:
regex - the regular expression to match against
replacement - the replacement string
Returns:
the resulting String

replaceAll

public static final Function<String,String> replaceAll(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.

Parameters:
regex - the regular expression to match against
replacement - the replacement string
Returns:
the resulting String

split

public static final Function<String,List<String>> split()

Splits a String into a list of substrings using a whitespace as a separator.

Returns:
a List with the resulting substrings.

split

public static final Function<String,List<String>> split(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).

Parameters:
separator - the separator to be used
Returns:
a List with the resulting substrings.

splitAsArray

public static final Function<String,String[]> splitAsArray()

Splits a String into an array of substrings using a whitespace as a separator.

Returns:
an array with the resulting substrings.

splitAsArray

public static final Function<String,String[]> splitAsArray(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).

Parameters:
separator - the separator to be used
Returns:
an array with the resulting substrings.

join

public static final Function<List<Object>,String> join()

Joins the string representation of the objects in the list (which might be Strings themselves) into a single String (no separator used).

Returns:
the resulting String

join

public static final Function<List<Object>,String> join(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.

Returns:
the resulting String

joinArray

public static final Function<Object[],String> joinArray()

Joins the string representation of the objects in the array (which might be Strings themselves) into a single String (no separator used).

Returns:
the resulting String

joinArray

public static final Function<Object[],String> joinArray(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.

Returns:
the resulting String

asciify

public static final Function<String,String> asciify()

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.

Returns:
the transformed String

asciify

public static final Function<String,String> asciify(FnString.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 FnString.AsciifyMode parameter.

Transformations for AsciifyMode.DEFAULT are:

Transformations for AsciifyMode.UMLAUT_E are the same as DEFAULT with the following differences:

Returns:
the transformed String

isAlpha

public static final Function<String,Boolean> isAlpha()

Checks if a String contains only unicode letters or not

Returns:
whether the input String contains only unicode letters or not

isAlphaSpace

public static final Function<String,Boolean> isAlphaSpace()

Checks if a String contains only unicode letters and spaces or not

Returns:
true if the input String contains only unicode letters and spaces. Otherwise, false

isNumeric

public static final Function<String,Boolean> isNumeric()

Checks if a String contains only unicode digits or not

Returns:
whether the input String contains only unicode digits or not

isNumericSpace

public static final Function<String,Boolean> isNumericSpace()

Checks if a String contains only unicode digits and spaces or not

Returns:
true if the input String contains only unicode digits and spaces. Otherwise, false

canBeBigDecimal

public static final Function<String,Boolean> canBeBigDecimal()

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.

Returns:
true if the input String represents a valid BigDecimal. Otherwise, false
Since:
1.2

canBeBigDecimal

public static final Function<String,Boolean> canBeBigDecimal(Locale locale)

Returns true if the input String can be converted into a valid BigDecimal in the given Locale

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid BigDecimal. Otherwise, false
Since:
1.2

canBeBigDecimal

public static final Function<String,Boolean> canBeBigDecimal(String locale)

Returns true if the input String can be converted into a valid BigDecimal in the given Locale specified as a String

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid BigDecimal. Otherwise, false
Since:
1.2

canBeBigDecimal

public static final Function<String,Boolean> canBeBigDecimal(DecimalPoint decimalPoint)

Returns true if the input String can be converted into a valid BigDecimal using the specified decimal point configuration (DecimalPoint).

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
true if the input String represents a valid BigDecimal. Otherwise, false
Since:
1.2

isBigDecimal

@Deprecated
public static final Function<String,Boolean> isBigDecimal()
Deprecated. use canBeBigDecimal() instead. This method will be removed in version 1.3

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.

Returns:
true if the input String represents a valid BigDecimal. Otherwise, false

isBigDecimal

@Deprecated
public static final Function<String,Boolean> isBigDecimal(Locale locale)
Deprecated. use canBeBigDecimal(Locale) instead. This method will be removed in version 1.3

Returns true if the input String can be converted into a valid BigDecimal in the given Locale

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid BigDecimal. Otherwise, false

isBigDecimal

@Deprecated
public static final Function<String,Boolean> isBigDecimal(String locale)
Deprecated. use canBeBigDecimal(String) instead. This method will be removed in version 1.3

Returns true if the input String can be converted into a valid BigDecimal in the given Locale specified as a String

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid BigDecimal. Otherwise, false

isBigDecimal

@Deprecated
public static final Function<String,Boolean> isBigDecimal(DecimalPoint decimalPoint)
Deprecated. use canBeBigDecimal(DecimalPoint) instead. This method will be removed in version 1.3

Returns true if the input String can be converted into a valid BigDecimal using the specified decimal point configuration (DecimalPoint).

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
true if the input String represents a valid BigDecimal. Otherwise, false

isValidBigDecimal

public static final Function<String,Boolean> isValidBigDecimal()

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. That is, if it represents either a decimal or non decimal number. This function is the same as canBeBigDecimal().

Returns:
true if the input String represents a valid BigDecimal. Otherwise, false
Since:
1.2

isValidBigDecimal

public static final Function<String,Boolean> isValidBigDecimal(Locale locale)

Returns true if the input String can be converted into a valid BigDecimal in the given Locale. That is, if it represents either a decimal or non decimal number. This function is the same as canBeBigDecimal(Locale)

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid BigDecimal. Otherwise, false
Since:
1.2

isValidBigDecimal

public static final Function<String,Boolean> isValidBigDecimal(String locale)

Returns true if the input String can be converted into a valid BigDecimal in the given Locale specified as a String. That is, if it represents either a decimal or non decimal number. This function is the same as canBeBigDecimal(String)

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid BigDecimal. Otherwise, false
Since:
1.2

isValidBigDecimal

public static final Function<String,Boolean> isValidBigDecimal(DecimalPoint decimalPoint)

Returns true if the input String can be converted into a valid BigDecimal using the specified decimal point configuration (DecimalPoint). That is, if it represents either a decimal or non decimal number. This function is the same as canBeBigDecimal(DecimalPoint).

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
true if the input String represents a valid BigDecimal. Otherwise, false
Since:
1.2

canBeBigInteger

public static final Function<String,Boolean> canBeBigInteger()

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.

Returns:
true if the input String represents a valid BigInteger. Otherwise, false
Since:
1.2

canBeBigInteger

public static final Function<String,Boolean> canBeBigInteger(Locale locale)

Returns true if the input String can be converted into a valid BigInteger in the given Locale

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid BigInteger. Otherwise, false
Since:
1.2

canBeBigInteger

public static final Function<String,Boolean> canBeBigInteger(String locale)

Returns true if the input String can be converted into a valid BigInteger in the given Locale specified as a String

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid BigInteger. Otherwise, false
Since:
1.2

canBeBigInteger

public static final Function<String,Boolean> canBeBigInteger(DecimalPoint decimalPoint)

Returns true if the input String can be converted into a valid BigInteger using the specified decimal point configuration (DecimalPoint).

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
true if the input String represents a valid BigInteger. Otherwise, false
Since:
1.2

canBeBigInteger

public static final Function<String,Boolean> canBeBigInteger(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

Parameters:
radix - the radix being used by the String
Returns:
true if the input String represents a valid BigInteger. Otherwise, false
Since:
1.2

isBigInteger

@Deprecated
public static final Function<String,Boolean> isBigInteger()
Deprecated. use canBeBigInteger() instead. This method will be removed in version 1.3

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.

Returns:
true if the input String represents a valid BigInteger. Otherwise, false

isBigInteger

@Deprecated
public static final Function<String,Boolean> isBigInteger(Locale locale)
Deprecated. use canBeBigInteger(Locale) instead. This method will be removed in version 1.3

Returns true if the input String can be converted into a valid BigInteger in the given Locale

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid BigInteger. Otherwise, false

isBigInteger

@Deprecated
public static final Function<String,Boolean> isBigInteger(String locale)
Deprecated. use canBeBigInteger(String) instead. This method will be removed in version 1.3

Returns true if the input String can be converted into a valid BigInteger in the given Locale specified as a String

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid BigInteger. Otherwise, false

isBigInteger

@Deprecated
public static final Function<String,Boolean> isBigInteger(DecimalPoint decimalPoint)
Deprecated. use canBeBigInteger(DecimalPoint) instead. This method will be removed in version 1.3

Returns true if the input String can be converted into a valid BigInteger using the specified decimal point configuration (DecimalPoint).

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
true if the input String represents a valid BigInteger. Otherwise, false

isBigInteger

@Deprecated
public static final Function<String,Boolean> isBigInteger(int radix)
Deprecated. use canBeBigInteger(int) instead. This method will be removed in version 1.3

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

Parameters:
radix - the radix being used by the String
Returns:
true if the input String represents a valid BigInteger. Otherwise, false

isValidBigInteger

public static final Function<String,Boolean> isValidBigInteger()

Returns true if the input String can be converted into a valid BigInteger. That is, if it represents a non decimal number. It uses the default configuration from the JVM (en_US) to check whether the string is valid or not.

Returns:
true if the input String represents a valid BigInteger. Otherwise, false
Since:
1.2

isValidBigInteger

public static final Function<String,Boolean> isValidBigInteger(Locale locale)

Returns true if the input String can be converted into a valid BigInteger in the given Locale.That is, if it represents a non decimal number.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid BigInteger. Otherwise, false
Since:
1.2

isValidBigInteger

public static final Function<String,Boolean> isValidBigInteger(String locale)

Returns true if the input String can be converted into a valid BigInteger in the given Locale specified as a String. That is, if it represents a non decimal number.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid BigInteger. Otherwise, false
Since:
1.2

isValidBigInteger

public static final Function<String,Boolean> isValidBigInteger(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. That is, if it represents a non decimal number.

Parameters:
radix - the radix being used by the String
Returns:
true if the input String represents a valid BigInteger. Otherwise, false
Since:
1.2

canBeDouble

public static final Function<String,Boolean> canBeDouble()

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, toDouble() will throw an exception if called.

Returns:
true if the input String represents a valid Double. Otherwise, false
Since:
1.2

canBeDouble

public static final Function<String,Boolean> canBeDouble(Locale locale)

Returns true if the input String can be converted into a valid Double in the given Locale. If this method returns false, toDouble(Locale) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Double. Otherwise, false
Since:
1.2

canBeDouble

public static final Function<String,Boolean> canBeDouble(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, toDouble(String) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Double. Otherwise, false
Since:
1.2

canBeDouble

public static final Function<String,Boolean> canBeDouble(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, toDouble(DecimalPoint) will throw an exception if called.

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
true if the input String represents a valid Double. Otherwise, false
Since:
1.2

isDouble

@Deprecated
public static final Function<String,Boolean> isDouble()
Deprecated. use canBeDouble() instead. This method will be removed in version 1.3

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, toDouble() will throw an exception if called.

Returns:
true if the input String represents a valid Double. Otherwise, false

isDouble

@Deprecated
public static final Function<String,Boolean> isDouble(Locale locale)
Deprecated. use canBeDouble(Locale) instead. This method will be removed in version 1.3

Returns true if the input String can be converted into a valid Double in the given Locale. If this method returns false, toDouble(Locale) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Double. Otherwise, false

isDouble

@Deprecated
public static final Function<String,Boolean> isDouble(String locale)
Deprecated. use canBeDouble(String) instead. This method will be removed in version 1.3

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, toDouble(String) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Double. Otherwise, false

isDouble

@Deprecated
public static final Function<String,Boolean> isDouble(DecimalPoint decimalPoint)
Deprecated. use canBeDouble(DecimalPoint) instead. This method will be removed in version 1.3

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, toDouble(DecimalPoint) will throw an exception if called.

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
true if the input String represents a valid Double. Otherwise, false

isValidDouble

public static final Function<String,Boolean> isValidDouble()

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. That is, if it represents either a decimal or non decimal number that fits in a Double number. This function is the same as canBeDouble()

Returns:
true if the input String represents a valid Double. Otherwise, false
Since:
1.2

isValidDouble

public static final Function<String,Boolean> isValidDouble(Locale locale)

Returns true if the input String can be converted into a valid Double in the given Locale. That is, if it represents either a decimal or non decimal number that fits in a Double number. This function is the same as canBeDouble(Locale)

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Double. Otherwise, false
Since:
1.2

isValidDouble

public static final Function<String,Boolean> isValidDouble(String locale)

Returns true if the input String can be converted into a valid Double in the given Locale specified as a String. That is, if it represents either a decimal or non decimal number that fits in a Double number. This function is the same as canBeDouble(String)

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Double. Otherwise, false
Since:
1.2

isValidDouble

public static final Function<String,Boolean> isValidDouble(DecimalPoint decimalPoint)

Returns true if the input String can be converted into a valid Double using the specified decimal point configuration (DecimalPoint). That is, if it represents either a decimal or non decimal number that fits in a Double number. This function is the same as canBeDouble(DecimalPoint)

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
true if the input String represents a valid Double. Otherwise, false
Since:
1.2

canBeFloat

public static final Function<String,Boolean> canBeFloat()

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, toFloat() will throw an exception if called.

Returns:
true if the input String represents a valid Float. Otherwise, false
Since:
1.2

canBeFloat

public static final Function<String,Boolean> canBeFloat(Locale locale)

Returns true if the input String can be converted into a valid Float in the given Locale. If this method returns false, toFloat(Locale) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Float. Otherwise, false
Since:
1.2

canBeFloat

public static final Function<String,Boolean> canBeFloat(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, toFloat(String) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Float. Otherwise, false
Since:
1.2

canBeFloat

public static final Function<String,Boolean> canBeFloat(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, toFloat(DecimalPoint) will throw an exception if called.

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
true if the input String represents a valid Float. Otherwise, false
Since:
1.2

isFloat

@Deprecated
public static final Function<String,Boolean> isFloat()
Deprecated. use canBeFloat() instead. This method will be removed in version 1.3

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, toFloat() will throw an exception if called.

Returns:
true if the input String represents a valid Float. Otherwise, false

isFloat

@Deprecated
public static final Function<String,Boolean> isFloat(Locale locale)
Deprecated. use canBeFloat(Locale) instead. This method will be removed in version 1.3

Returns true if the input String can be converted into a valid Float in the given Locale. If this method returns false, toFloat(Locale) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Float. Otherwise, false

isFloat

@Deprecated
public static final Function<String,Boolean> isFloat(String locale)
Deprecated. use canBeFloat(String) instead. This method will be removed in version 1.3

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, toFloat(String) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Float. Otherwise, false

isFloat

@Deprecated
public static final Function<String,Boolean> isFloat(DecimalPoint decimalPoint)
Deprecated. use canBeFloat(DecimalPoint) instead. This method will be removed in version 1.3

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, toFloat(DecimalPoint) will throw an exception if called.

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
true if the input String represents a valid Float. Otherwise, false

isValidFloat

public static final Function<String,Boolean> isValidFloat()

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. That is, if it represents either a decimal or non decimal number that fits in a Float number. This function is the same as canBeFloat()

Returns:
true if the input String represents a valid Float. Otherwise, false
Since:
1.2

isValidFloat

public static final Function<String,Boolean> isValidFloat(Locale locale)

Returns true if the input String can be converted into a valid Float in the given Locale. That is, if it represents either a decimal or non decimal number that fits in a Float number. This function is the same as canBeFloat(Locale)

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Float. Otherwise, false
Since:
1.2

isValidFloat

public static final Function<String,Boolean> isValidFloat(String locale)

Returns true if the input String can be converted into a valid Float in the given Locale specified as a String. That is, if it represents either a decimal or non decimal number that fits in a Float number. This function is the same as canBeFloat(String)

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Float. Otherwise, false
Since:
1.2

isValidFloat

public static final Function<String,Boolean> isValidFloat(DecimalPoint decimalPoint)

Returns true if the input String can be converted into a valid Float using the specified decimal point configuration (DecimalPoint). That is, if it represents either a decimal or non decimal number that fits in a Float number. This function is the same as canBeFloat(DecimalPoint).

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
true if the input String represents a valid Float. Otherwise, false
Since:
1.2

canBeLong

public static final Function<String,Boolean> canBeLong()

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, toLong() will throw an exception if called.

Returns:
true if the input String represents a valid Long. Otherwise, false
Since:
1.2

canBeLong

public static final Function<String,Boolean> canBeLong(Locale locale)

Returns true if the input String can be converted into a valid Long in the given Locale. If this method returns false, toLong(Locale) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Long. Otherwise, false
Since:
1.2

canBeLong

public static final Function<String,Boolean> canBeLong(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, toLong(String) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Long. Otherwise, false
Since:
1.2

canBeLong

public static final Function<String,Boolean> canBeLong(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, toLong(DecimalPoint) will throw an exception if called.

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
true if the input String represents a valid Long. Otherwise, false
Since:
1.2

canBeLong

public static final Function<String,Boolean> canBeLong(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, toLong(int) will throw an exception if called.

Parameters:
radix - the radix being used by the String
Returns:
true if the input String represents a valid Long. Otherwise, false
Since:
1.2

isLong

@Deprecated
public static final Function<String,Boolean> isLong()
Deprecated. use canBeLong() instead. This method will be removed in version 1.3

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, toLong() will throw an exception if called.

Returns:
true if the input String represents a valid Long. Otherwise, false

isLong

@Deprecated
public static final Function<String,Boolean> isLong(Locale locale)
Deprecated. use canBeLong(Locale) instead. This method will be removed in version 1.3

Returns true if the input String can be converted into a valid Long in the given Locale. If this method returns false, toLong(Locale) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Long. Otherwise, false

isLong

@Deprecated
public static final Function<String,Boolean> isLong(String locale)
Deprecated. use canBeLong(String) instead. This method will be removed in version 1.3

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, toLong(String) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Long. Otherwise, false

isLong

@Deprecated
public static final Function<String,Boolean> isLong(DecimalPoint decimalPoint)
Deprecated. use canBeLong(DecimalPoint) instead. This method will be removed in version 1.3

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, toLong(DecimalPoint) will throw an exception if called.

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
true if the input String represents a valid Long. Otherwise, false

isLong

@Deprecated
public static final Function<String,Boolean> isLong(int radix)
Deprecated. use canBeLong(int) instead. This method will be removed in version 1.3

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, toLong(int) will throw an exception if called.

Parameters:
radixthe - radix being used by the String
Returns:
true if the input String represents a valid Long. Otherwise, false

isValidLong

public static final Function<String,Boolean> isValidLong()

Returns true if the input String represents an Long, that is, it it represents a non decimal number between Long.MIN_VALUE and Long.MAX_VALUE.

Returns:
true if the input String represents a valid Long. Otherwise, false
Since:
1.2

isValidLong

public static final Function<String,Boolean> isValidLong(Locale locale)

Returns true if the input String represents an Long, that is, it it represents a non decimal number between Long.MIN_VALUE and Long.MAX_VALUE.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Long. Otherwise, false
Since:
1.2

isValidLong

public static final Function<String,Boolean> isValidLong(String locale)

Returns true if the input String represents an Long, that is, it it represents a non decimal number between Long.MIN_VALUE and Long.MAX_VALUE.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Long. Otherwise, false
Since:
1.2

isValidLong

public static final Function<String,Boolean> isValidLong(int radix)

Returns true if the input String represents an Long, that is, it it represents a non decimal number between Long.MIN_VALUE and Long.MAX_VALUE. It uses the default configuration to check the String.

Parameters:
radix - the radix being used by the String
Returns:
true if the input String represents a valid Long. Otherwise, false
Since:
1.2

canBeInteger

public static final Function<String,Boolean> canBeInteger()

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, toInteger() will throw an exception if called.

Returns:
true if the input String represents a valid Integer. Otherwise, false
Since:
1.2

canBeInteger

public static final Function<String,Boolean> canBeInteger(Locale locale)

Returns true if the input String can be converted into a valid Integer in the given Locale. If this method returns false, toInteger(Locale) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Integer. Otherwise, false
Since:
1.2

canBeInteger

public static final Function<String,Boolean> canBeInteger(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, toInteger(String) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Integer. Otherwise, false
Since:
1.2

canBeInteger

public static final Function<String,Boolean> canBeInteger(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, toInteger(DecimalPoint) will throw an exception if called.

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
true if the input String represents a valid Integer. Otherwise, false
Since:
1.2

canBeInteger

public static final Function<String,Boolean> canBeInteger(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, toInteger(int) will throw an exception if called.

Parameters:
radix - the radix being used by the String
Returns:
true if the input String represents a valid Integer. Otherwise, false
Since:
1.2

isInteger

@Deprecated
public static final Function<String,Boolean> isInteger()
Deprecated. use canBeInteger() instead. This method will be removed in version 1.3

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, toInteger() will throw an exception if called.

Returns:
true if the input String represents a valid Integer. Otherwise, false

isInteger

@Deprecated
public static final Function<String,Boolean> isInteger(Locale locale)
Deprecated. use canBeInteger(Locale) instead. This method will be removed in version 1.3

Returns true if the input String can be converted into a valid Integer in the given Locale. If this method returns false, toInteger(Locale) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Integer. Otherwise, false

isInteger

@Deprecated
public static final Function<String,Boolean> isInteger(String locale)
Deprecated. use canBeInteger(String) instead. This method will be removed in version 1.3

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, toInteger(String) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Integer. Otherwise, false

isInteger

@Deprecated
public static final Function<String,Boolean> isInteger(DecimalPoint decimalPoint)
Deprecated. use canBeInteger(DecimalPoint) instead. This method will be removed in version 1.3

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, toInteger(DecimalPoint) will throw an exception if called.

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
true if the input String represents a valid Integer. Otherwise, false

isInteger

@Deprecated
public static final Function<String,Boolean> isInteger(int radix)
Deprecated. use canBeInteger(int) instead. This method will be removed in version 1.3

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, toInteger(int) will throw an exception if called.

Parameters:
radix - the radix being used by the String
Returns:
true if the input String represents a valid Integer. Otherwise, false

isValidInteger

public static final Function<String,Boolean> isValidInteger()

Returns true if the input String represents an Integer, that is, it it represents a non decimal number between Integer.MIN_VALUE and Integer.MAX_VALUE.

Returns:
true if the input String represents a valid Integer. Otherwise, false
Since:
1.2

isValidInteger

public static final Function<String,Boolean> isValidInteger(Locale locale)

Returns true if the input String represents an Integer, that is, it it represents a non decimal number between Integer.MIN_VALUE and Integer.MAX_VALUE.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Integer. Otherwise, false
Since:
1.2

isValidInteger

public static final Function<String,Boolean> isValidInteger(String locale)

Returns true if the input String represents an Integer, that is, it it represents a non decimal number between Integer.MIN_VALUE and Integer.MAX_VALUE.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Integer. Otherwise, false
Since:
1.2

isValidInteger

public static final Function<String,Boolean> isValidInteger(int radix)

Returns true if the input String represents an Integer, that is, it it represents a non decimal number between Integer.MIN_VALUE and Integer.MAX_VALUE. It uses the default configuration to check the String.

Parameters:
radix - the radix being used by the String
Returns:
true if the input String represents a valid Integer. Otherwise, false
Since:
1.2

canBeShort

public static final Function<String,Boolean> canBeShort()

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, toShort() will throw an exception if called.

Returns:
true if the input String represents a valid Short. Otherwise, false
Since:
1.2

canBeShort

public static final Function<String,Boolean> canBeShort(Locale locale)

Returns true if the input String can be converted into a valid Short in the given Locale. If this method returns false, toShort(Locale) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Short. Otherwise, false
Since:
1.2

canBeShort

public static final Function<String,Boolean> canBeShort(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, toShort(String) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Short. Otherwise, false
Since:
1.2

canBeShort

public static final Function<String,Boolean> canBeShort(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, toShort(DecimalPoint) will throw an exception if called.

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
true if the input String represents a valid Short. Otherwise, false
Since:
1.2

canBeShort

public static final Function<String,Boolean> canBeShort(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, toShort(int) will throw an exception if called.

Parameters:
radix - the radix being used by the String
Returns:
true if the input String represents a valid Short. Otherwise, false
Since:
1.2

isShort

@Deprecated
public static final Function<String,Boolean> isShort()
Deprecated. use canBeShort() instead. This method will be removed in version 1.3

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, toShort() will throw an exception if called.

Returns:
true if the input String represents a valid Short. Otherwise, false

isShort

@Deprecated
public static final Function<String,Boolean> isShort(Locale locale)
Deprecated. use canBeShort(Locale) instead. This method will be removed in version 1.3

Returns true if the input String can be converted into a valid Short in the given Locale. If this method returns false, toShort(Locale) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Short. Otherwise, false

isShort

@Deprecated
public static final Function<String,Boolean> isShort(String locale)
Deprecated. use canBeShort(String) instead. This method will be removed in version 1.3

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, toShort(String) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Short. Otherwise, false

isShort

@Deprecated
public static final Function<String,Boolean> isShort(DecimalPoint decimalPoint)
Deprecated. use canBeShort(DecimalPoint) instead. This method will be removed in version 1.3

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, toShort(DecimalPoint) will throw an exception if called.

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
true if the input String represents a valid Short. Otherwise, false

isShort

@Deprecated
public static final Function<String,Boolean> isShort(int radix)
Deprecated. use canBeShort(int) instead. This method will be removed in version 1.3

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, toShort(int) will throw an exception if called.

Parameters:
radix - the radix being used by the String
Returns:
true if the input String represents a valid Short. Otherwise, false

isValidShort

public static final Function<String,Boolean> isValidShort()

Returns true if the input String represents a Short, that is, it it represents a non decimal number between Short.MIN_VALUE and Short.MAX_VALUE.

Returns:
true if the input String represents a valid Short. Otherwise, false
Since:
1.2

isValidShort

public static final Function<String,Boolean> isValidShort(Locale locale)

Returns true if the input String represents a Short, that is, it it represents a non decimal number between Short.MIN_VALUE and Short.MAX_VALUE.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Short. Otherwise, false
Since:
1.2

isValidShort

public static final Function<String,Boolean> isValidShort(String locale)

Returns true if the input String represents a Short, that is, it it represents a non decimal number between Short.MIN_VALUE and Short.MAX_VALUE.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Short. Otherwise, false
Since:
1.2

isValidShort

public static final Function<String,Boolean> isValidShort(int radix)

Returns true if the input String represents a Short, that is, it it represents a non decimal number between Short.MIN_VALUE and Short.MAX_VALUE. It uses the default configuration to check the String.

Parameters:
radix - the radix being used by the String
Returns:
true if the input String represents a valid Short. Otherwise, false
Since:
1.2

canBeByte

public static final Function<String,Boolean> canBeByte()

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, toByte() will throw an exception if called.

Returns:
true if the input String represents a valid Byte. Otherwise, false
Since:
1.2

canBeByte

public static final Function<String,Boolean> canBeByte(Locale locale)

Returns true if the input String can be converted into a valid Byte in the given Locale. If this method returns false, toByte(Locale) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Byte. Otherwise, false
Since:
1.2

canBeByte

public static final Function<String,Boolean> canBeByte(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, toByte(String) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Byte. Otherwise, false
Since:
1.2

canBeByte

public static final Function<String,Boolean> canBeByte(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, toByte(DecimalPoint) will throw an exception if called.

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
true if the input String represents a valid Byte. Otherwise, false
Since:
1.2

canBeByte

public static final Function<String,Boolean> canBeByte(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, toByte(int) will throw an exception if called.

Parameters:
radix - the radix being used by the String
Returns:
true if the input String represents a valid Byte. Otherwise, false
Since:
1.2

isByte

@Deprecated
public static final Function<String,Boolean> isByte()
Deprecated. use canBeByte() instead. This method will be removed in version 1.3

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, toByte() will throw an exception if called.

Returns:
true if the input String represents a valid Byte. Otherwise, false

isByte

@Deprecated
public static final Function<String,Boolean> isByte(Locale locale)
Deprecated. use canBeByte(Locale) instead. This method will be removed in version 1.3

Returns true if the input String can be converted into a valid Byte in the given Locale. If this method returns false, toByte(Locale) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Byte. Otherwise, false

isByte

@Deprecated
public static final Function<String,Boolean> isByte(String locale)
Deprecated. use canBeByte(String) instead. This method will be removed in version 1.3

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, toByte(String) will throw an exception if called.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Byte. Otherwise, false

isByte

@Deprecated
public static final Function<String,Boolean> isByte(DecimalPoint decimalPoint)
Deprecated. use canBeByte(DecimalPoint) instead. This method will be removed in version 1.3

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, toByte(DecimalPoint) will throw an exception if called.

Parameters:
decimalPoint - the decimal point being used by the String
Returns:
true if the input String represents a valid Byte. Otherwise, false

isByte

@Deprecated
public static final Function<String,Boolean> isByte(int radix)
Deprecated. use canBeByte(int) instead. This method will be removed in version 1.3

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, toByte(int) will throw an exception if called.

Parameters:
radix - the radix being used by the String
Returns:
true if the input String represents a valid Byte. Otherwise, false

isValidByte

public static final Function<String,Boolean> isValidByte()

Returns true if the input String represents a Byte, that is, it it represents a non decimal number between Byte.MIN_VALUE and Byte.MAX_VALUE.

Returns:
true if the input String represents a valid Byte. Otherwise, false
Since:
1.2

isValidByte

public static final Function<String,Boolean> isValidByte(Locale locale)

Returns true if the input String represents a Byte, that is, it it represents a non decimal number between Byte.MIN_VALUE and Byte.MAX_VALUE.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Byte. Otherwise, false
Since:
1.2

isValidByte

public static final Function<String,Boolean> isValidByte(String locale)

Returns true if the input String represents a Byte, that is, it it represents a non decimal number between Byte.MIN_VALUE and Byte.MAX_VALUE.

Parameters:
locale - the locale defining the way in which the number is written
Returns:
true if the input String represents a valid Byte. Otherwise, false
Since:
1.2

isValidByte

public static final Function<String,Boolean> isValidByte(int radix)

Returns true if the input String represents a Byte, that is, it it represents a non decimal number between Byte.MIN_VALUE and Byte.MAX_VALUE. It uses the default configuration to check the String.

Parameters:
radix - the radix being used by the String
Returns:
true if the input String represents a valid Byte. Otherwise, false
Since:
1.2

startsWith

public static final Function<String,Boolean> startsWith(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.

Parameters:
prefix - the prefix to be search at the beginning of the input
Returns:
true if the input String starts with the specified prefix

startsWith

public static final Function<String,Boolean> startsWith(String prefix,
                                                        int offset)

It checks whether the input substring after the given offset starts with the given prefix or not.

Parameters:
prefix - the prefix to be search after the specified offset
offset - where to begin looking for the prefix
Returns:

endsWith

public static final Function<String,Boolean> endsWith(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.

Parameters:
suffix - suffix to be search at the end of the input
Returns:
true if the input String ends with the specified suffix

substring

public static final Function<String,String> substring(int start)

Returns the substring of input from start position (null if null String input). It calls StringUtils.substring(String, int)

Parameters:
start - the position to start from, negative means count back from the end of the String by this many characters
Returns:
the substring

substring

public static final Function<String,String> substring(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)

Parameters:
start - the position to start from, negative means count back from the end of the String by this many characters
end - the position to end at (exclusive), negative means count back from the end of the String by this many characters
Returns:
the substring

substringBefore

public static final Function<String,String> substringBefore(String separator)

Returns the substring before the first occurrence of the given separator. It calls StringUtils.substringBefore(String, String)

Parameters:
separator - the String to search for (may be null)
Returns:
the substring before the first occurrence of the separator, null if null String input

substringBeforeLast

public static final Function<String,String> substringBeforeLast(String separator)

Returns the substring before the last occurrence of the given separator. It calls StringUtils.substringBeforeLast(String, String)

Parameters:
separator - the String to search for (may be null)
Returns:
the substring before the last occurrence of the separator, null if null String input

substringAfter

public static final Function<String,String> substringAfter(String separator)

Returns the substring after the first occurrence of the given separator. It calls StringUtils.substringAfter(String, String)

Parameters:
separator - the String to search for (may be null)
Returns:
the substring after the first occurrence of the separator, null if null String input

substringAfterLast

public static final Function<String,String> substringAfterLast(String separator)

Returns the substring after the last occurrence of the given separator. It calls StringUtils.substringAfterLast(String, String)

Parameters:
separator - the String to search for (may be null)
Returns:
the substring after the last occurrence of the separator, null if null String input

substringBetween

public static final Function<String,String> substringBetween(String tag)

Returns the substring between tag and tag or null if there is no match. It calls StringUtils.substringBetween(String, String)

Parameters:
tag - the String before and after the substring, may be null
Returns:
the substring, null if no match

substringBetween

public static final Function<String,String> substringBetween(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)

Parameters:
open - the String before the substring, may be null
close - the String after the substring, may be null
Returns:
the substring, null if no match

isEmpty

public static final Function<String,Boolean> isEmpty()

Returns whether the target String is empty or not. It calls StringUtils.isEmpty(String). The string is empty if it is "" or null

Returns:
whether the String is empty or not

isBlank

public static final Function<String,Boolean> isBlank()

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.

Returns:
whether the String is blank or not

reverse

public static final Function<String,String> reverse()

It reverses the input String

Returns:
a String equals to the input string reversed


Copyright © 2012 The OP4J team. All Rights Reserved.