|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.op4j.functions.FnString
public final class FnString
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 |
---|
public static final Function<String,BigDecimal> toBigDecimal()
Converts a String into a BigDecimal, using the default configuration for for decimal point and precision.
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.
locale
- the locale defining the way in which the number was written
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.)
locale
- the locale defining the way in which the number was written
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.
decimalPoint
- the decimal point being used by the String
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.
scale
- the desired scale for the resulting BigDecimal objectroundingMode
- the rounding mode to be used when setting the scale
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.
scale
- the desired scale for the resulting BigDecimal objectroundingMode
- the rounding mode to be used when setting the scalelocale
- the locale defining the way in which the number was written
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.)
scale
- the desired scale for the resulting BigDecimal objectroundingMode
- the rounding mode to be used when setting the scalelocale
- the locale defining the way in which the number was written
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.
scale
- the desired scale for the resulting BigDecimal objectroundingMode
- the rounding mode to be used when setting the scaledecimalPoint
- the decimal point being used by the String
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.
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.
locale
- the locale defining the way in which the number was written
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.
locale
- the locale defining the way in which the number was written
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.
decimalPoint
- the decimal point being used by the String
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).
radix
- the radix in which the number is supposedly represented in the String
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.
roundingMode
- the rounding mode to be used when setting the scale
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.
roundingMode
- the rounding mode to be used when setting the scaledecimalPoint
- the decimal point being used by the String
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.
roundingMode
- the rounding mode to be used when setting the scalelocale
- the locale defining the way in which the number was written
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.
roundingMode
- the rounding mode to be used when setting the scalelocale
- the locale defining the way in which the number was written
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
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
locale
- the locale defining the way in which the number was written
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
locale
- the locale defining the way in which the number was written
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
decimalPoint
- the decimal point being used by the String
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
scale
- the desired scale for the resulting Double objectroundingMode
- the rounding mode to be used when setting the scale
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
scale
- the desired scale for the resulting Double objectroundingMode
- the rounding mode to be used when setting the scalelocale
- the locale defining the way in which the number was written
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
scale
- the desired scale for the resulting Double objectroundingMode
- the rounding mode to be used when setting the scalelocale
- the locale defining the way in which the number was written
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
scale
- the desired scale for the resulting Double objectroundingMode
- the rounding mode to be used when setting the scaledecimalPoint
- the decimal point being used by the String
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
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
locale
- the locale defining the way in which the number was written
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
locale
- the locale defining the way in which the number was written
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
decimalPoint
- the decimal point being used by the String
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
scale
- the desired scale for the resulting Float objectroundingMode
- the rounding mode to be used when setting the scale
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
scale
- the desired scale for the resulting Float objectroundingMode
- the rounding mode to be used when setting the scalelocale
- the locale defining the way in which the number was written
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
scale
- the desired scale for the resulting Float objectroundingMode
- the rounding mode to be used when setting the scalelocale
- the locale defining the way in which the number was written
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
scale
- the desired scale for the resulting Float objectroundingMode
- the rounding mode to be used when setting the scaledecimalPoint
- the decimal point being used by the String
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
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
locale
- the locale defining the way in which the number was written
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
locale
- the locale defining the way in which the number was written
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
decimalPoint
- the decimal point being used by the String
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)
radix
- the radix in which the number is supposedly represented in the String
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
roundingMode
- the rounding mode to be used when setting the scale
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
roundingMode
- the rounding mode to be used when setting the scaledecimalPoint
- the decimal point being used by the String
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
roundingMode
- the rounding mode to be used when setting the scalelocale
- the locale defining the way in which the number was written
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
roundingMode
- the rounding mode to be used when setting the scalelocale
- the locale defining the way in which the number was written
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
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
locale
- the locale defining the way in which the number was written
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
locale
- the locale defining the way in which the number was written
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
decimalPoint
- the decimal point being used by the String
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)
radix
- the radix in which the number is supposedly represented in the String
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
roundingMode
- the rounding mode to be used when setting the scale
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
roundingMode
- the rounding mode to be used when setting the scaledecimalPoint
- the decimal point being used by the String
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
roundingMode
- the rounding mode to be used when setting the scalelocale
- the locale defining the way in which the number was written
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
roundingMode
- the rounding mode to be used when setting the scalelocale
- the locale defining the way in which the number was written
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
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
locale
- the locale defining the way in which the number was written
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
locale
- the locale defining the way in which the number was written
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
decimalPoint
- the decimal point being used by the String
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)
radix
- the radix in which the number is supposedly represented in the String
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
roundingMode
- the rounding mode to be used when setting the scale
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
roundingMode
- the rounding mode to be used when setting the scaledecimalPoint
- the decimal point being used by the String
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
roundingMode
- the rounding mode to be used when setting the scalelocale
- the locale defining the way in which the number was written
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
roundingMode
- the rounding mode to be used when setting the scalelocale
- the locale defining the way in which the number was written
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
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
locale
- the locale defining the way in which the number was written
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
locale
- the locale defining the way in which the number was written
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
decimalPoint
- the decimal point being used by the String
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
radix
- the radix in which the number is supposedly represented in the String
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
roundingMode
- the rounding mode to be used when setting the scale
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
roundingMode
- the rounding mode to be used when setting the scaledecimalPoint
- the decimal point being used by the String
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
roundingMode
- the rounding mode to be used when setting the scalelocale
- the locale defining the way in which the number was written
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
roundingMode
- the rounding mode to be used when setting the scalelocale
- the locale defining the way in which the number was written
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().
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:
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:
String
value for an unescaped CSV column.
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:
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:
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:
"bread" & "butter"
becomes
"bread" & "butter".
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:
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:
'\\'
and 't'
.Example:
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().
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).
charset
- the charset to be used
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.
charset
- the charset to be used
public static final Function<String,String> toUpperCase()
Converts the target String to upper case.
public static final Function<String,String> toLowerCase()
Converts the target String to lower case.
public static final Function<String,String> unCapitalize()
Converts the first letter of each word in the target String to lowercase
public static final Function<String,String> capitalize()
Converts the first letter of each word in the target String to upper case.
public static final Function<String,String> trim()
Removes control characters (char <= 32) from both ends of the target String.
public static final Function<String,String> strip()
Strips whitespace from both sides of the target String.
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.
pattern
- the pattern to be used
String
represents a Calendar
,
false otherwisepublic 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.
pattern
- the pattern to be used.locale
- the locale which will be used for parsing month names
String
represents a Calendar
,
false otherwisepublic 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.
pattern
- the pattern to be used (ex: "en_US", "es_ES", etc.)locale
- the locale which will be used for parsing month names
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.
pattern
- the pattern to be used
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.
pattern
- the pattern to be used.locale
- the locale which will be used for parsing month names
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.
pattern
- the pattern to be used (ex: "en_US", "es_ES", etc.)locale
- the locale which will be used for parsing month names
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.
pattern
- the pattern to be used
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.
pattern
- the pattern to be used.locale
- the locale which will be used for parsing month names
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.
pattern
- the pattern to be used (ex: "en_US", "es_ES", etc.)locale
- the locale which will be used for parsing month names
public static final Function<Object,Boolean> eq(String object)
Performs an equals operation between the target object and the specified one.
object
- the object that will be passed as a parameter to the "equals" operation.
public static final Function<Object,Boolean> notEq(String object)
Performs an inverse equals operation between the target object and the specified one.
object
- the object that will be passed as a parameter to the "equals" operation.
public static final Function<Object,Boolean> isNull()
Determines whether the target object is null or not.
public static final Function<Object,Boolean> isNotNull()
Determines whether the target object is null or not.
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
.
object
- the object to compare to the target
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
.
object
- the object to compare to the target
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
.
object
- the object to compare to the target
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
.
object
- the object to compare to the target
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.
regex
- the regular expression to match against
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.
regex
- the regular expression to match against
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.
regex
- the regular expression to match against
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.
regex
- the regular expression to match against
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.
regex
- the regular expression to match against
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.
regex
- the regular expression to match againstgroup
- the group number to be extracted
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.
regex
- the regular expression to match againstgroups
- the group numbers to be extracted
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.
regex
- the regular expression to match againstreplacement
- the replacement string
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.
regex
- the regular expression to match againstreplacement
- the replacement string
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.
regex
- the regular expression to match againstreplacement
- the replacement string
public static final Function<String,List<String>> split()
Splits a String into a list of substrings using a whitespace as a separator.
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).
separator
- the separator to be used
public static final Function<String,String[]> splitAsArray()
Splits a String into an array of substrings using a whitespace as a separator.
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).
separator
- the separator to be used
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).
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.
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).
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.
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.
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:
public static final Function<String,Boolean> isAlpha()
Checks if a String contains only unicode letters or not
public static final Function<String,Boolean> isAlphaSpace()
Checks if a String contains only unicode letters and spaces or not
public static final Function<String,Boolean> isNumeric()
Checks if a String contains only unicode digits or not
public static final Function<String,Boolean> isNumericSpace()
Checks if a String contains only unicode digits and spaces or not
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.
String
represents a valid BigDecimal
.
Otherwise, falsepublic 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
locale
- the locale defining the way in which the number is written
String
represents a valid BigDecimal
.
Otherwise, falsepublic 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
locale
- the locale defining the way in which the number is written
String
represents a valid BigDecimal
.
Otherwise, falsepublic 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
).
decimalPoint
- the decimal point being used by the String
String
represents a valid BigDecimal
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isBigDecimal()
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.
String
represents a valid BigDecimal
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isBigDecimal(Locale locale)
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
locale
- the locale defining the way in which the number is written
String
represents a valid BigDecimal
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isBigDecimal(String locale)
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
locale
- the locale defining the way in which the number is written
String
represents a valid BigDecimal
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isBigDecimal(DecimalPoint decimalPoint)
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
).
decimalPoint
- the decimal point being used by the String
String
represents a valid BigDecimal
.
Otherwise, falsepublic 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()
.
String
represents a valid BigDecimal
.
Otherwise, falsepublic 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)
locale
- the locale defining the way in which the number is written
String
represents a valid BigDecimal
.
Otherwise, falsepublic 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)
locale
- the locale defining the way in which the number is written
String
represents a valid BigDecimal
.
Otherwise, falsepublic 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)
.
decimalPoint
- the decimal point being used by the String
String
represents a valid BigDecimal
.
Otherwise, falsepublic 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.
String
represents a valid BigInteger
.
Otherwise, falsepublic 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
locale
- the locale defining the way in which the number is written
String
represents a valid BigInteger
.
Otherwise, falsepublic 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
locale
- the locale defining the way in which the number is written
String
represents a valid BigInteger
.
Otherwise, falsepublic 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
).
decimalPoint
- the decimal point being used by the String
String
represents a valid BigInteger
.
Otherwise, falsepublic 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
radix
- the radix being used by the String
String
represents a valid BigInteger
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isBigInteger()
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.
String
represents a valid BigInteger
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isBigInteger(Locale locale)
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
locale
- the locale defining the way in which the number is written
String
represents a valid BigInteger
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isBigInteger(String locale)
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
locale
- the locale defining the way in which the number is written
String
represents a valid BigInteger
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isBigInteger(DecimalPoint decimalPoint)
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
).
decimalPoint
- the decimal point being used by the String
String
represents a valid BigInteger
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isBigInteger(int radix)
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
radix
- the radix being used by the String
String
represents a valid BigInteger
.
Otherwise, falsepublic 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.
String
represents a valid BigInteger
.
Otherwise, falsepublic 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.
locale
- the locale defining the way in which the number is written
String
represents a valid BigInteger
.
Otherwise, falsepublic 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.
locale
- the locale defining the way in which the number is written
String
represents a valid BigInteger
.
Otherwise, falsepublic 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.
radix
- the radix being used by the String
String
represents a valid BigInteger
.
Otherwise, falsepublic 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.
String
represents a valid Double
.
Otherwise, falsepublic 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.
locale
- the locale defining the way in which the number is written
String
represents a valid Double
.
Otherwise, falsepublic 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.
locale
- the locale defining the way in which the number is written
String
represents a valid Double
.
Otherwise, falsepublic 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.
decimalPoint
- the decimal point being used by the String
String
represents a valid Double
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isDouble()
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.
String
represents a valid Double
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isDouble(Locale locale)
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.
locale
- the locale defining the way in which the number is written
String
represents a valid Double
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isDouble(String locale)
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.
locale
- the locale defining the way in which the number is written
String
represents a valid Double
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isDouble(DecimalPoint decimalPoint)
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.
decimalPoint
- the decimal point being used by the String
String
represents a valid Double
.
Otherwise, falsepublic 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()
String
represents a valid Double
.
Otherwise, falsepublic 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)
locale
- the locale defining the way in which the number is written
String
represents a valid Double
.
Otherwise, falsepublic 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)
locale
- the locale defining the way in which the number is written
String
represents a valid Double
.
Otherwise, falsepublic 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)
decimalPoint
- the decimal point being used by the String
String
represents a valid Double
.
Otherwise, falsepublic 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.
String
represents a valid Float
.
Otherwise, falsepublic 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.
locale
- the locale defining the way in which the number is written
String
represents a valid Float
.
Otherwise, falsepublic 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.
locale
- the locale defining the way in which the number is written
String
represents a valid Float
.
Otherwise, falsepublic 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.
decimalPoint
- the decimal point being used by the String
String
represents a valid Float
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isFloat()
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.
String
represents a valid Float
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isFloat(Locale locale)
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.
locale
- the locale defining the way in which the number is written
String
represents a valid Float
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isFloat(String locale)
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.
locale
- the locale defining the way in which the number is written
String
represents a valid Float
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isFloat(DecimalPoint decimalPoint)
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.
decimalPoint
- the decimal point being used by the String
String
represents a valid Float
.
Otherwise, falsepublic 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()
String
represents a valid Float
.
Otherwise, falsepublic 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)
locale
- the locale defining the way in which the number is written
String
represents a valid Float
.
Otherwise, falsepublic 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)
locale
- the locale defining the way in which the number is written
String
represents a valid Float
.
Otherwise, falsepublic 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)
.
decimalPoint
- the decimal point being used by the String
String
represents a valid Float
.
Otherwise, falsepublic 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.
String
represents a valid Long
.
Otherwise, falsepublic 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.
locale
- the locale defining the way in which the number is written
String
represents a valid Long
.
Otherwise, falsepublic 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.
locale
- the locale defining the way in which the number is written
String
represents a valid Long
.
Otherwise, falsepublic 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.
decimalPoint
- the decimal point being used by the String
String
represents a valid Long
.
Otherwise, falsepublic 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.
radix
- the radix being used by the String
String
represents a valid Long
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isLong()
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.
String
represents a valid Long
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isLong(Locale locale)
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.
locale
- the locale defining the way in which the number is written
String
represents a valid Long
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isLong(String locale)
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.
locale
- the locale defining the way in which the number is written
String
represents a valid Long
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isLong(DecimalPoint decimalPoint)
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.
decimalPoint
- the decimal point being used by the String
String
represents a valid Long
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isLong(int radix)
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.
radixthe
- radix being used by the String
String
represents a valid Long
.
Otherwise, falsepublic 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
.
String
represents a valid Long
.
Otherwise, falsepublic 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
.
locale
- the locale defining the way in which the number is written
String
represents a valid Long
.
Otherwise, falsepublic 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
.
locale
- the locale defining the way in which the number is written
String
represents a valid Long
.
Otherwise, falsepublic 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
.
radix
- the radix being used by the String
String
represents a valid Long
.
Otherwise, falsepublic 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.
String
represents a valid Integer
.
Otherwise, falsepublic 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.
locale
- the locale defining the way in which the number is written
String
represents a valid Integer
.
Otherwise, falsepublic 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.
locale
- the locale defining the way in which the number is written
String
represents a valid Integer
.
Otherwise, falsepublic 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.
decimalPoint
- the decimal point being used by the String
String
represents a valid Integer
.
Otherwise, falsepublic 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.
radix
- the radix being used by the String
String
represents a valid Integer
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isInteger()
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.
String
represents a valid Integer
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isInteger(Locale locale)
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.
locale
- the locale defining the way in which the number is written
String
represents a valid Integer
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isInteger(String locale)
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.
locale
- the locale defining the way in which the number is written
String
represents a valid Integer
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isInteger(DecimalPoint decimalPoint)
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.
decimalPoint
- the decimal point being used by the String
String
represents a valid Integer
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isInteger(int radix)
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.
radix
- the radix being used by the String
String
represents a valid Integer
.
Otherwise, falsepublic 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
.
String
represents a valid Integer
.
Otherwise, falsepublic 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
.
locale
- the locale defining the way in which the number is written
String
represents a valid Integer
.
Otherwise, falsepublic 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
.
locale
- the locale defining the way in which the number is written
String
represents a valid Integer
.
Otherwise, falsepublic 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
.
radix
- the radix being used by the String
String
represents a valid Integer
.
Otherwise, falsepublic 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.
String
represents a valid Short
.
Otherwise, falsepublic 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.
locale
- the locale defining the way in which the number is written
String
represents a valid Short
.
Otherwise, falsepublic 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.
locale
- the locale defining the way in which the number is written
String
represents a valid Short
.
Otherwise, falsepublic 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.
decimalPoint
- the decimal point being used by the String
String
represents a valid Short
.
Otherwise, falsepublic 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.
radix
- the radix being used by the String
String
represents a valid Short
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isShort()
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.
String
represents a valid Short
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isShort(Locale locale)
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.
locale
- the locale defining the way in which the number is written
String
represents a valid Short
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isShort(String locale)
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.
locale
- the locale defining the way in which the number is written
String
represents a valid Short
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isShort(DecimalPoint decimalPoint)
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.
decimalPoint
- the decimal point being used by the String
String
represents a valid Short
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isShort(int radix)
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.
radix
- the radix being used by the String
String
represents a valid Short
.
Otherwise, falsepublic 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
.
String
represents a valid Short
.
Otherwise, falsepublic 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
.
locale
- the locale defining the way in which the number is written
String
represents a valid Short
.
Otherwise, falsepublic 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
.
locale
- the locale defining the way in which the number is written
String
represents a valid Short
.
Otherwise, falsepublic 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
.
radix
- the radix being used by the String
String
represents a valid Short
.
Otherwise, falsepublic 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.
String
represents a valid Byte
.
Otherwise, falsepublic 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.
locale
- the locale defining the way in which the number is written
String
represents a valid Byte
.
Otherwise, falsepublic 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.
locale
- the locale defining the way in which the number is written
String
represents a valid Byte
.
Otherwise, falsepublic 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.
decimalPoint
- the decimal point being used by the String
String
represents a valid Byte
.
Otherwise, falsepublic 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.
radix
- the radix being used by the String
String
represents a valid Byte
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isByte()
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.
String
represents a valid Byte
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isByte(Locale locale)
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.
locale
- the locale defining the way in which the number is written
String
represents a valid Byte
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isByte(String locale)
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.
locale
- the locale defining the way in which the number is written
String
represents a valid Byte
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isByte(DecimalPoint decimalPoint)
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.
decimalPoint
- the decimal point being used by the String
String
represents a valid Byte
.
Otherwise, false@Deprecated public static final Function<String,Boolean> isByte(int radix)
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.
radix
- the radix being used by the String
String
represents a valid Byte
.
Otherwise, falsepublic 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
.
String
represents a valid Byte
.
Otherwise, falsepublic 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
.
locale
- the locale defining the way in which the number is written
String
represents a valid Byte
.
Otherwise, falsepublic 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
.
locale
- the locale defining the way in which the number is written
String
represents a valid Byte
.
Otherwise, falsepublic 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
.
radix
- the radix being used by the String
String
represents a valid Byte
.
Otherwise, falsepublic 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.
prefix
- the prefix to be search at the beginning of the input
String
starts with the specified prefixpublic 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.
prefix
- the prefix to be search after the specified offsetoffset
- where to begin looking for the prefix
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.
suffix
- suffix to be search at the end of the input
String
ends with the specified suffixpublic 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)
start
- the position to start from, negative means count back from the
end of the String by this many characters
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)
start
- the position to start from, negative means count back from the
end of the String by this many charactersend
- the position to end at (exclusive), negative means count back
from the end of the String by this many characters
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)
separator
- the String
to search for (may be null)
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)
separator
- the String
to search for (may be null)
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)
separator
- the String
to search for (may be null)
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)
separator
- the String
to search for (may be null)
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)
tag
- the String before and after the substring, may be null
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)
open
- the String before the substring, may be nullclose
- the String after the substring, may be null
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
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.
public static final Function<String,String> reverse()
It reverses the input String
String
equals to the input string reversed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |