public final class StringUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Locale |
CURRENT_LOCALE
The current locale of the JVM
|
static java.text.Collator |
CURRENT_LOCALE_COLLATOR
The current locale's collator
|
static char |
DECIMAL_SEPARATOR
Current locale decimal separator symbol
|
static char |
GROUPING_SEPARATOR
Current locale decimal grouping symbol
|
static java.util.Locale |
INVARIANT_LOCALE
An invariant locale across JVMs
|
static java.text.Collator |
INVARIANT_LOCALE_COLLATOR
The invariant locale's collator
|
static org.joda.time.format.DateTimeFormatter |
STANDARD_FORMATTERS
ISO standard date/time formatters (composite class)
|
Modifier and Type | Method and Description |
---|---|
static char[] |
charRange(char start,
char end)
Returns a character range from start (inclusive) to end (exclusive).
|
static char[] |
charRange(int start,
int end)
Returns a character range from start (inclusive) to end (exclusive).
|
static int |
compare(java.lang.String a,
java.lang.String b)
Compares two Strings using a CurrentLocale string comparison.
|
static int |
compare(java.lang.String a,
java.lang.String b,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Comparison function, uses higher performance locale-aware comparison, uses existing collator to avoid creating one every time.
|
static int |
compare(java.lang.String a,
java.lang.String b,
StringComparison stringComparison)
Compares two Strings using the specified string comparison.
|
static char[] |
concat(char[]... values)
Concatenates the given chars.
|
static java.lang.String |
concat(char[] values)
Concatenates the given chars.
|
static java.lang.String |
concat(java.lang.Iterable<java.lang.String> values)
Concatenates a collection of strings into a single string.
|
static java.lang.String |
concat(java.lang.Iterable<java.lang.String> values,
java.lang.String nullReplacementValue)
Concatenates a collection of strings into a single string.
|
static java.lang.String |
concat(java.lang.String[] values)
Concatenates a collection of strings into a single string.
|
static java.lang.String |
concat(java.lang.String[] values,
java.lang.String nullReplacementValue)
Concatenates a collection of strings into a single string.
|
static boolean |
contains(char[] sequence,
char ch)
Returns true if a char sequence contains a character
|
static boolean |
contains(java.lang.Iterable<java.lang.String> values,
java.lang.String value,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Returns true if the value is contained in the collection of values.
|
static boolean |
contains(java.lang.Iterable<java.lang.String> values,
java.lang.String value,
StringComparison stringComparison)
Returns true if the value is contained in the collection of values.
|
static boolean |
contains(java.lang.String[] values,
java.lang.String value,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Returns true if the value is contained in the collection of values.
|
static boolean |
contains(java.lang.String[] values,
java.lang.String value,
StringComparison stringComparison)
Returns true if the value is contained in the collection of values.
|
static boolean |
contains(java.lang.String value,
char ch)
Returns true if a string contains a character
|
static boolean |
contains(java.lang.String value,
java.lang.String part)
Returns true if the part is contained in the value.
|
static boolean |
contains(java.lang.String value,
java.lang.String part,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Returns true if the part is contained in the value.
|
static boolean |
contains(java.lang.String value,
java.lang.String part,
StringComparison stringComparison)
Returns true if the part is contained in the value.
|
static boolean |
containsAll(java.lang.Iterable<java.lang.String> values,
java.lang.Iterable<java.lang.String> items)
Returns true if all items are contained in the values string collection.
|
static boolean |
containsAll(java.lang.Iterable<java.lang.String> values,
java.lang.Iterable<java.lang.String> items,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Returns true if all items in items are contained in the values string collection.
|
static boolean |
containsAll(java.lang.Iterable<java.lang.String> values,
java.lang.Iterable<java.lang.String> items,
StringComparison stringComparison)
Returns true if all items are contained in the values string collection.
|
static boolean |
containsAll(java.lang.String value,
char[] characters)
Returns true if all characters are contained in a string.
|
static boolean |
containsAll(java.lang.String value,
java.lang.Iterable<java.lang.String> parts)
Returns true if all strings specified are contained in the value string.
|
static boolean |
containsAll(java.lang.String value,
java.lang.Iterable<java.lang.String> parts,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Returns true if all strings specified are contained in the value string.
|
static boolean |
containsAll(java.lang.String value,
java.lang.Iterable<java.lang.String> parts,
StringComparison stringComparison)
Returns true if all strings specified are contained in the value string.
|
static boolean |
containsAny(java.lang.Iterable<java.lang.String> values,
java.lang.Iterable<java.lang.String> items,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Returns true if any item in items is contained in the values string collection.
|
static boolean |
containsAny(java.lang.Iterable<java.lang.String> values,
java.lang.Iterable<java.lang.String> items,
StringComparison stringComparison)
Returns true if any item in items is contained in the values string collection.
|
static boolean |
containsAny(java.lang.String value,
char[] characters)
Returns true if all characters are contained in a string.
|
static boolean |
containsAny(java.lang.String value,
java.lang.Iterable<java.lang.String> parts)
Returns true if any of the strings are contained in a string.
|
static boolean |
containsAny(java.lang.String value,
java.lang.Iterable<java.lang.String> parts,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Returns true if any of the strings are contained in a string.
|
static boolean |
containsAny(java.lang.String value,
java.lang.Iterable<java.lang.String> parts,
StringComparison stringComparison)
Returns true if any of the strings are contained in a string.
|
static java.lang.String |
copy(java.lang.String value,
int startIndex,
int endIndex)
Similar to String.Substring
|
static int |
count(char[] array,
char ch)
Returns the number of occurences of a character in a character array.
|
static int |
count(java.lang.String value,
char character)
Returns the number of occurences of a character in a string value.
|
static int |
count(java.lang.String value,
java.lang.String element)
Returns the number of occurences of a string element in a string value, using the CurrentLocale StringComparison.
|
static int |
count(java.lang.String value,
java.lang.String element,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Returns the number of occurences of a string element in a string value, using the specified string comparison type.
|
static int |
count(java.lang.String value,
java.lang.String element,
StringComparison stringComparison)
Returns the number of occurences of a string element in a string value, using the specified string comparison type.
|
static java.lang.String |
crop(java.lang.String value,
char except)
Performs a cropStart and cropEnd, returning the result
|
static java.lang.String |
crop(java.lang.String value,
char[] except)
Performs a cropStart and cropEnd, returning the result
|
static java.lang.String |
cropEnd(java.lang.String value,
char except)
Crops all characters from the end of the given string, until the except character is encountered
|
static java.lang.String |
cropEnd(java.lang.String value,
char[] except)
Crops all characters from the end of the given string, until a character is encountered which exists in the given exception array
|
static java.lang.String |
cropStart(java.lang.String value,
char except)
Crops all characters from the start of the given string, until the except character is encountered
|
static java.lang.String |
cropStart(java.lang.String value,
char[] except)
Crops all characters from the start of the given string, until a character is encountered which exists in the given exception array
|
static java.lang.String |
delete(java.lang.String value,
int startIndex,
int endIndex)
Deletes the specified range of characters from the string.
|
static java.lang.String |
delimit(char[] values,
java.lang.String delimiter)
Concatenates the given chars with the given delimiter between all values.
|
static java.lang.String |
delimit(java.lang.Iterable<java.lang.String> values,
java.lang.String delimiter)
Concatenates the given values using their toString() method and appending the given delimiter between all values.
|
static java.lang.String |
delimit(java.lang.Iterable<java.lang.String> values,
java.lang.String delimiter,
java.lang.String nullReplacementValue)
Concatenates the given values using their toString() method and appending the given delimiter between all values.
|
static java.lang.String |
delimit(java.lang.String[] values,
java.lang.String delimiter)
Concatenates the given values using their toString() method and appending the given delimiter between all values.
|
static java.lang.String |
delimit(java.lang.String[] values,
java.lang.String delimiter,
java.lang.String nullReplacementValue)
Concatenates the given values using their toString() method and appending the given delimiter between all values.
|
static java.lang.String |
detectLineSeparator(java.lang.String text)
Returns CR, LF or CRLF, depending on the frequency of line separators found in the given text data.
|
static java.lang.String |
detectLineSeparator(java.lang.String text,
float ratio)
Returns CR, LF or CRLF, depending on the frequency of line separators found in the given text data.
|
static boolean |
endsWith(java.lang.String value,
char suffix)
Returns true if the value ends with a suffix.
|
static boolean |
endsWith(java.lang.String value,
java.lang.String suffix)
Returns true if a value ends with a suffix.
|
static boolean |
endsWith(java.lang.String value,
java.lang.String suffix,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Returns true if a value ends with a suffix.
|
static boolean |
endsWith(java.lang.String value,
java.lang.String suffix,
StringComparison stringComparison)
Returns true if a value ends with a suffix.
|
static boolean |
equal(java.lang.String a,
java.lang.String b)
Returns true if a value equals with another.
|
static boolean |
equal(java.lang.String a,
java.lang.String b,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Returns true if a value equals with another.
|
static boolean |
equal(java.lang.String a,
java.lang.String b,
StringComparison stringComparison)
Returns true if a value equals with another.
|
static int |
indexOf(char[] array,
char ch)
Finds the first index encountered of a particular character.
|
static int |
indexOf(java.lang.String value,
java.lang.String part)
Returns the first index where a part is encountered within a string value.
|
static int |
indexOf(java.lang.String value,
java.lang.String part,
int startIndex,
int count,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Returns the first, second, third, etc.
|
static int |
indexOf(java.lang.String value,
java.lang.String part,
int startIndex,
int count,
StringComparison stringComparison)
Returns the first, second, third, etc.
|
static int |
indexOf(java.lang.String value,
java.lang.String part,
int occurrence,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Returns the index of the first/second/third/etc.
|
static int |
indexOf(java.lang.String value,
java.lang.String part,
int occurrence,
StringComparison stringComparison)
Returns the index of the first/second/third/etc.
|
static int |
indexOf(java.lang.String value,
java.lang.String part,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Returns the first index where a part is encountered within a string value.
|
static int |
indexOf(java.lang.String value,
java.lang.String part,
StringComparison stringComparison)
Returns the first index where a part is encountered within a string value.
|
static java.lang.String |
insert(java.lang.String value,
int index,
java.lang.String insertedValue)
Inserts a string in a position in the given string.
|
static boolean |
isNullOrBlank(java.lang.String value)
Returns true if the given string is null or contains only whitespace chars (' ', '\t', '\r' and '\n').
|
static boolean |
isNullOrEmpty(java.lang.String value)
Returns true if the given string is null or empty.
|
static int |
lastIndexOf(char[] array,
char ch)
Finds the last index encountered of a particular character.
|
static int |
lastIndexOf(java.lang.String value,
java.lang.String part)
Returns the last index where a part is encountered within a string value.
|
static int |
lastIndexOf(java.lang.String value,
java.lang.String part,
int startIndex,
int count,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Returns the first, second, third, etc.
|
static int |
lastIndexOf(java.lang.String value,
java.lang.String part,
int startIndex,
int count,
StringComparison stringComparison)
Returns the first, second, third, etc.
|
static int |
lastIndexOf(java.lang.String value,
java.lang.String part,
int occurrenceFromEnd,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Returns the index of the first/second/third/etc.
|
static int |
lastIndexOf(java.lang.String value,
java.lang.String part,
int occurrenceFromEnd,
StringComparison stringComparison)
Returns the index of the first/second/third/etc.
|
static int |
lastIndexOf(java.lang.String value,
java.lang.String part,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Returns the last index where a part is encountered within a string value.
|
static int |
lastIndexOf(java.lang.String value,
java.lang.String part,
StringComparison stringComparison)
Returns the last index where a part is encountered within a string value.
|
static boolean |
match(java.lang.String a,
MatchType stringMatch,
java.lang.String b,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Allows for matching a string to another, using Equals, StartsWith, EndsWith or Contains and a string comparison.
|
static boolean |
match(java.lang.String a,
MatchType stringMatch,
java.lang.String b,
StringComparison stringComparison)
Allows for matching a string to another, using Equals, StartsWith, EndsWith or Contains and a string comparison.
|
static java.lang.String |
padLeft(java.lang.String value,
int totalLength,
char pad)
Left-aligns the characters in this instance, padding on the right a specified character
|
static java.lang.String |
padRight(java.lang.String value,
int totalLength,
char pad)
Right-aligns the characters in this instance, padding on the left a specified character
|
static boolean |
parseBool(java.lang.String value)
Parses a boolean from a string
|
static boolean |
parseBool(java.lang.String value,
java.lang.String trueValue,
java.lang.String falseValue,
StringComparison comparisonType)
Parses a boolean from a string
|
static char |
parseChar(java.lang.String value)
Parses the first character from a string.
|
static char |
parseChar(java.lang.String value,
char minValue,
char maxValue)
Parses the first character from a string
|
static org.joda.time.LocalDateTime |
parseDateTime(java.lang.String value)
Parses a DateTime from a string.
|
static org.joda.time.LocalDateTime |
parseDateTime(java.lang.String value,
org.joda.time.format.DateTimeFormatter formatter)
Parses a DateTime from a string
|
static org.joda.time.LocalDateTime |
parseDateTime(java.lang.String value,
org.joda.time.LocalDateTime minValue,
org.joda.time.LocalDateTime maxValue,
org.joda.time.format.DateTimeFormatter formatter)
Parses a DateTime from a string
|
static java.math.BigDecimal |
parseDecimal(java.lang.String value)
Parses a decimal from a string
|
static java.math.BigDecimal |
parseDecimal(java.lang.String value,
java.math.BigDecimal minValue,
java.math.BigDecimal maxValue)
Parses a decimal from a string
|
static double |
parseDouble(java.lang.String value)
Parses a double from a string
|
static double |
parseDouble(java.lang.String value,
double minValue,
double maxValue,
boolean allowInfinity,
boolean allowNaN)
Parses a double from a string
|
static float |
parseFloat(java.lang.String value)
Parses a float from a string
|
static float |
parseFloat(java.lang.String value,
float minValue,
float maxValue,
boolean allowInfinity,
boolean allowNaN)
Parses a float from a string
|
static Int128 |
parseInt128(java.lang.String value)
Parses an Int128 from a string
|
static Int128 |
parseInt128(java.lang.String value,
Int128 minValue,
Int128 maxValue)
Parses an Int128 from a string
|
static short |
parseInt16(java.lang.String value)
Parses a short from a string
|
static short |
parseInt16(java.lang.String value,
short minValue,
short maxValue)
Parses a short from a string
|
static int |
parseInt32(java.lang.String value)
Parses an int from a string
|
static int |
parseInt32(java.lang.String value,
int minValue,
int maxValue)
Parses an int from a string
|
static long |
parseInt64(java.lang.String value)
Parses a long from a string
|
static long |
parseInt64(java.lang.String value,
long minValue,
long maxValue)
Parses a long from a string
|
static byte |
parseInt8(java.lang.String value)
Parses a byte from a string
|
static byte |
parseInt8(java.lang.String value,
byte minValue,
byte maxValue)
Parses a byte from a string
|
static java.lang.String |
parseString(java.lang.Object value)
Parses the value of the given object: simply returns the toString() result after checking for null, if the object is null the result is
null.
|
static java.lang.String |
parseString(java.lang.String value)
Parses the value of the given string: simply returns the string after checking for null.
|
static org.joda.time.Duration |
parseTimeSpan(java.lang.String value)
Parses a TimeSpan from a string
|
static org.joda.time.Duration |
parseTimeSpan(java.lang.String value,
org.joda.time.Duration minValue,
org.joda.time.Duration maxValue)
Parses a TimeSpan from a string.
|
static UnsignedShort |
parseUInt16(java.lang.String value)
Parses a ushort from a string
|
static UnsignedShort |
parseUInt16(java.lang.String value,
UnsignedShort minValue,
UnsignedShort maxValue)
Parses a ushort from a string
|
static UnsignedInteger |
parseUInt32(java.lang.String value)
Parses a uint from a string
|
static UnsignedInteger |
parseUInt32(java.lang.String value,
UnsignedInteger minValue,
UnsignedInteger maxValue)
Parses a uint from a string
|
static UnsignedLong |
parseUInt64(java.lang.String value)
Parses a ulong from a string
|
static UnsignedLong |
parseUInt64(java.lang.String value,
UnsignedLong minValue,
UnsignedLong maxValue)
Parses a ulong from a string
|
static UnsignedByte |
parseUInt8(java.lang.String value)
Parses an sbyte from a string
|
static UnsignedByte |
parseUInt8(java.lang.String value,
UnsignedByte minValue,
UnsignedByte maxValue)
Parses an sbyte from a string
|
static java.lang.String |
repeat(char value,
int repetitions)
Returns a number of ToString() result concatenations of the given character.
|
static java.lang.String |
repeat(java.lang.String value,
int repetitions)
Returns a number of ToString() result concatenations of the given string value.
|
static void |
replace(java.lang.StringBuilder builder,
java.lang.String textToReplace,
java.lang.String replaceWithText)
Replace method working on a string builder, for more efficient replacement.
|
static java.lang.String |
replace(java.lang.String value,
java.lang.String textToReplace,
java.lang.String replaceWithText,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Replaces text in a value with the specified replacement text, using the given string comparison type.
|
static java.lang.String |
replace(java.lang.String value,
java.lang.String textToReplace,
java.lang.String replaceWithText,
StringComparison stringComparison)
Replaces text in a value with the specified replacement text, using the given string comparison type.
|
static java.lang.String |
reverse(java.lang.String value)
Reverses a string.
|
static boolean |
sequenceEqual(char[] a,
char[] b)
Returns true if two character sequences are equal
|
static boolean |
sequenceEqual(char[] a,
int startIndexA,
char[] b,
int startIndexB,
int count)
Returns true if two character sequences are equal
|
static java.util.List<char[]> |
split(char[] values,
char delimiter)
Splits a sequence into parts delimited by the specified delimited.
|
static java.lang.String[] |
split(java.lang.String text,
char delimiter)
Splits a string, using StringSplitOptions.RemoveEmptyEntries.
|
static java.lang.String[] |
split(java.lang.String text,
char[] delimiters,
StringSplitOptions options)
Returns a string array that contains the substrings of the text instance that are delimited by elements of a specified Unicode
character array.
|
static java.lang.String[] |
split(java.lang.String text,
char delimiter,
StringSplitOptions options)
Splits a string using the specified split option.
|
static java.lang.String[] |
split(java.lang.String text,
java.lang.String delimiter)
Splits a string, using StringSplitOptions.RemoveEmptyEntries.
|
static java.lang.String[] |
split(java.lang.String text,
java.lang.String[] delimiters,
StringSplitOptions options)
Returns a string array that contains the substrings of the text instance that are delimited by elements provided in the specified
Unicode string array.
|
static java.lang.String[] |
split(java.lang.String text,
java.lang.String delimiter,
StringSplitOptions options)
Splits a string using the specified split option.
|
static java.lang.String[] |
splitAnchor(java.lang.String text,
java.lang.Iterable<java.lang.String> delimiters)
Splits a string by finding consecutive 'tags' i.e.
|
static java.lang.String[] |
splitAnchor(java.lang.String text,
java.lang.String[] delimiters)
Splits a string by finding consecutive 'tags' i.e.
|
static boolean |
startsWith(java.lang.String value,
char prefix)
Returns true if the value starts with a prefix.
|
static boolean |
startsWith(java.lang.String value,
java.lang.String prefix)
Returns true if a value starts with a prefix.
|
static boolean |
startsWith(java.lang.String value,
java.lang.String prefix,
java.util.Locale locale,
java.text.Collator collator,
boolean caseSensitive)
Returns true if a value starts with a prefix.
|
static boolean |
startsWith(java.lang.String value,
java.lang.String prefix,
StringComparison stringComparison)
Returns true if a value starts with a prefix.
|
static java.lang.String |
substring(java.lang.String value,
int length)
Similar to String.Substring of .NET, uses a length instead of endIndex.
|
static java.lang.String |
substring(java.lang.String value,
int startIndex,
int length)
Similar to String.Substring of .NET, uses a length instead of endIndex.
|
static java.lang.String |
titleCase(java.lang.String value)
Title-cases a string
|
static java.lang.Character[] |
to(java.lang.Character start,
java.lang.Character end)
Returns a character range from start to end (inclusive)
|
static java.lang.String |
trim(java.lang.String value)
Trims a value of all whitespace chars, i.e.
|
static java.lang.String |
trim(java.lang.String value,
char[] chars)
Trims a value of all the given chars.
|
static java.lang.String |
trim(java.lang.String value,
java.lang.String trimmed,
StringComparison stringComparison)
Trims a value using the trimmed string.
|
static java.lang.String |
trimEnd(java.lang.String value,
char ch)
Trims a value's tail of all the instance of the given char.
|
static java.lang.String |
trimEnd(java.lang.String value,
char[] chars)
Trims a value's tail of all the given chars.
|
static java.lang.String |
trimEnd(java.lang.String value,
java.lang.String trimmed,
StringComparison stringComparison)
Trims a value using the trimmed string.
|
static java.lang.String |
trimStart(java.lang.String value,
char ch)
Trims a value's beginning of all instances of the given char.
|
static java.lang.String |
trimStart(java.lang.String value,
char[] chars)
Trims a value's beginning of all the given chars.
|
static java.lang.String |
trimStart(java.lang.String value,
java.lang.String trimmed,
StringComparison stringComparison)
Trims a value using the trimmed string.
|
static java.lang.String |
truncate(java.lang.String value,
int endIndex)
Cuts the tail of a string, at the specified index.
|
static java.lang.String |
truncateIfLonger(java.lang.String value,
int endIndex)
Cuts the tail of a string, if it exceeds a specified index, otherwise does nothing.
|
static TryResult<java.lang.Boolean> |
tryParseBool(java.lang.String value)
Tries to parse the given value.
|
static TryResult<java.lang.Boolean> |
tryParseBool(java.lang.String value,
java.lang.String trueValue,
java.lang.String falseValue,
StringComparison comparisonType)
Tries to parse the given value.
|
static TryResult<java.lang.Character> |
tryParseChar(java.lang.String value)
Tries to parse the given value.
|
static TryResult<java.lang.Character> |
tryParseChar(java.lang.String value,
char minValue,
char maxValue)
Tries to parse the given value.
|
static TryResult<org.joda.time.LocalDateTime> |
tryParseDateTime(java.lang.String value)
Tries to parse the given value.
|
static TryResult<org.joda.time.LocalDateTime> |
tryParseDateTime(java.lang.String value,
org.joda.time.format.DateTimeFormatter fmt)
Tries to parse the given value.
|
static TryResult<org.joda.time.LocalDateTime> |
tryParseDateTime(java.lang.String value,
org.joda.time.LocalDateTime minValue,
org.joda.time.LocalDateTime maxValue,
org.joda.time.format.DateTimeFormatter fmt)
Tries to parse the given value.
|
static TryResult<java.math.BigDecimal> |
tryParseDecimal(java.lang.String value)
Tries to parse the given value.
|
static TryResult<java.math.BigDecimal> |
tryParseDecimal(java.lang.String value,
java.math.BigDecimal minValue,
java.math.BigDecimal maxValue)
Tries to parse the given value.
|
static TryResult<java.lang.Double> |
tryParseDouble(java.lang.String value)
Tries to parse the given value.
|
static TryResult<java.lang.Double> |
tryParseDouble(java.lang.String value,
double minValue,
double maxValue,
boolean allowInfinity,
boolean allowNaN)
Tries to parse the given value.
|
static TryResult<java.lang.Float> |
tryParseFloat(java.lang.String value)
Tries to parse the given value.
|
static TryResult<java.lang.Float> |
tryParseFloat(java.lang.String value,
float minValue,
float maxValue,
boolean allowInfinity,
boolean allowNaN)
Tries to parse the given value.
|
static TryResult<Int128> |
tryParseInt128(java.lang.String value)
Tries to parse the given value.
|
static TryResult<Int128> |
tryParseInt128(java.lang.String value,
Int128 minValue,
Int128 maxValue)
Tries to parse the given value.
|
static TryResult<java.lang.Short> |
tryParseInt16(java.lang.String value)
Tries to parse the given value.
|
static TryResult<java.lang.Short> |
tryParseInt16(java.lang.String value,
short minValue,
short maxValue)
Tries to parse the given value.
|
static TryResult<java.lang.Integer> |
tryParseInt32(java.lang.String value)
Tries to parse the given value.
|
static TryResult<java.lang.Integer> |
tryParseInt32(java.lang.String value,
int minValue,
int maxValue)
Tries to parse the given value.
|
static TryResult<java.lang.Long> |
tryParseInt64(java.lang.String value)
Tries to parse the given value.
|
static TryResult<java.lang.Long> |
tryParseInt64(java.lang.String value,
long minValue,
long maxValue)
Tries to parse the given value.
|
static TryResult<java.lang.Byte> |
tryParseInt8(java.lang.String value)
Tries to parse the given value.
|
static TryResult<java.lang.Byte> |
tryParseInt8(java.lang.String value,
byte minValue,
byte maxValue)
Tries to parse the given value.
|
static TryResult<java.net.InetAddress> |
tryParseIpAddress(java.lang.String value)
Tries to parse the given value.
|
static TryResult<org.joda.time.Duration> |
tryParseTimeSpan(java.lang.String value)
Tries to parse the given value.
|
static TryResult<org.joda.time.Duration> |
tryParseTimeSpan(java.lang.String value,
org.joda.time.Duration minValue,
org.joda.time.Duration maxValue)
Tries to parse the given value.
|
static TryResult<UnsignedShort> |
tryParseUInt16(java.lang.String value)
Tries to parse the given value.
|
static TryResult<UnsignedShort> |
tryParseUInt16(java.lang.String value,
UnsignedShort minValue,
UnsignedShort maxValue)
Tries to parse the given value.
|
static TryResult<UnsignedInteger> |
tryParseUInt32(java.lang.String value)
Tries to parse the given value.
|
static TryResult<UnsignedInteger> |
tryParseUInt32(java.lang.String value,
UnsignedInteger minValue,
UnsignedInteger maxValue)
Tries to parse the given value.
|
static TryResult<UnsignedLong> |
tryParseUInt64(java.lang.String value)
Tries to parse the given value.
|
static TryResult<UnsignedLong> |
tryParseUInt64(java.lang.String value,
UnsignedLong minValue,
UnsignedLong maxValue)
Tries to parse the given value.
|
static TryResult<UnsignedByte> |
tryParseUInt8(java.lang.String value)
Tries to parse the given value.
|
static TryResult<UnsignedByte> |
tryParseUInt8(java.lang.String value,
UnsignedByte minValue,
UnsignedByte maxValue)
Tries to parse the given value.
|
static TryResult<java.util.UUID> |
tryParseUuid(java.lang.String value)
Tries to parse the given value.
|
static java.lang.Character[] |
until(java.lang.Character start,
java.lang.Character end)
Returns a character range from start (inclusive) to end (exclusive)
|
public static final java.util.Locale CURRENT_LOCALE
public static final java.util.Locale INVARIANT_LOCALE
public static final java.text.Collator CURRENT_LOCALE_COLLATOR
public static final java.text.Collator INVARIANT_LOCALE_COLLATOR
public static final char DECIMAL_SEPARATOR
public static final char GROUPING_SEPARATOR
public static final org.joda.time.format.DateTimeFormatter STANDARD_FORMATTERS
public static char[] charRange(char start, char end)
java.lang.IllegalArgumentException
- When the end is before startpublic static char[] charRange(int start, int end)
java.lang.IllegalArgumentException
- When the end is before startpublic static int compare(java.lang.String a, java.lang.String b)
java.lang.NullPointerException
- An argument is null.public static int compare(java.lang.String a, java.lang.String b, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static int compare(java.lang.String a, java.lang.String b, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.public static java.lang.String concat(java.lang.Iterable<java.lang.String> values)
java.lang.NullPointerException
- An argument is null.public static java.lang.String concat(java.lang.Iterable<java.lang.String> values, java.lang.String nullReplacementValue)
java.lang.NullPointerException
- The values argument is null.public static java.lang.String concat(java.lang.String[] values)
java.lang.NullPointerException
- An argument is null.public static java.lang.String concat(java.lang.String[] values, java.lang.String nullReplacementValue)
java.lang.NullPointerException
- The values argument is null.public static java.lang.String concat(char[] values)
java.lang.NullPointerException
- An argument is null.public static char[] concat(char[]... values)
java.lang.NullPointerException
- When the values or one of its arguments is null.public static boolean contains(char[] sequence, char ch)
java.lang.NullPointerException
- When the sequence is null.public static boolean contains(java.lang.String value, char ch)
java.lang.NullPointerException
- When the sequence is null.public static boolean contains(java.lang.String value, java.lang.String part)
java.lang.NullPointerException
- An argument is null.public static boolean contains(java.lang.String value, java.lang.String part, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static boolean contains(java.lang.String value, java.lang.String part, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.public static boolean contains(java.lang.Iterable<java.lang.String> values, java.lang.String value, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static boolean contains(java.lang.Iterable<java.lang.String> values, java.lang.String value, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.public static boolean contains(java.lang.String[] values, java.lang.String value, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static boolean contains(java.lang.String[] values, java.lang.String value, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.public static boolean containsAll(java.lang.String value, char[] characters)
java.lang.NullPointerException
- An argument is null.public static boolean containsAll(java.lang.String value, java.lang.Iterable<java.lang.String> parts)
java.lang.NullPointerException
- An argument is null.public static boolean containsAll(java.lang.String value, java.lang.Iterable<java.lang.String> parts, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static boolean containsAll(java.lang.String value, java.lang.Iterable<java.lang.String> parts, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.public static boolean containsAll(java.lang.Iterable<java.lang.String> values, java.lang.Iterable<java.lang.String> items)
java.lang.NullPointerException
- An argument is null.public static boolean containsAll(java.lang.Iterable<java.lang.String> values, java.lang.Iterable<java.lang.String> items, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static boolean containsAll(java.lang.Iterable<java.lang.String> values, java.lang.Iterable<java.lang.String> items, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.public static boolean containsAny(java.lang.String value, char[] characters)
java.lang.NullPointerException
- An argument is null.public static boolean containsAny(java.lang.String value, java.lang.Iterable<java.lang.String> parts)
java.lang.NullPointerException
- An argument is null.public static boolean containsAny(java.lang.String value, java.lang.Iterable<java.lang.String> parts, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static boolean containsAny(java.lang.String value, java.lang.Iterable<java.lang.String> parts, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.public static boolean containsAny(java.lang.Iterable<java.lang.String> values, java.lang.Iterable<java.lang.String> items, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static boolean containsAny(java.lang.Iterable<java.lang.String> values, java.lang.Iterable<java.lang.String> items, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.public static java.lang.String copy(java.lang.String value, int startIndex, int endIndex)
java.lang.NullPointerException
- An argument is null.java.lang.IndexOutOfBoundsException
- An index is out of bounds.public static int count(char[] array, char ch)
java.lang.NullPointerException
- An argument is null.public static int count(java.lang.String value, char character)
java.lang.NullPointerException
- An argument is null.public static int count(java.lang.String value, java.lang.String element)
java.lang.NullPointerException
- An argument is null.public static int count(java.lang.String value, java.lang.String element, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static int count(java.lang.String value, java.lang.String element, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.public static java.lang.String crop(java.lang.String value, char except)
java.lang.NullPointerException
- An argument is nullpublic static java.lang.String crop(java.lang.String value, char[] except)
java.lang.NullPointerException
- An argument is nullpublic static java.lang.String cropStart(java.lang.String value, char except)
java.lang.NullPointerException
- An argument is nullpublic static java.lang.String cropStart(java.lang.String value, char[] except)
java.lang.NullPointerException
- An argument is nullpublic static java.lang.String cropEnd(java.lang.String value, char except)
java.lang.NullPointerException
- An argument is nullpublic static java.lang.String cropEnd(java.lang.String value, char[] except)
java.lang.NullPointerException
- An argument is nullpublic static java.lang.String detectLineSeparator(java.lang.String text)
java.lang.NullPointerException
- An argument is null.public static java.lang.String detectLineSeparator(java.lang.String text, float ratio)
java.lang.NullPointerException
- An argument is null.public static java.lang.String delete(java.lang.String value, int startIndex, int endIndex)
java.lang.NullPointerException
- An argument is null.java.lang.IndexOutOfBoundsException
- An index is out of bounds.public static java.lang.String delimit(java.lang.Iterable<java.lang.String> values, java.lang.String delimiter)
java.lang.NullPointerException
- An argument is null.public static java.lang.String delimit(java.lang.Iterable<java.lang.String> values, java.lang.String delimiter, java.lang.String nullReplacementValue)
java.lang.NullPointerException
- An argument is null.public static java.lang.String delimit(java.lang.String[] values, java.lang.String delimiter)
java.lang.NullPointerException
- An argument is null.public static java.lang.String delimit(java.lang.String[] values, java.lang.String delimiter, java.lang.String nullReplacementValue)
java.lang.NullPointerException
- An argument is null.public static java.lang.String delimit(char[] values, java.lang.String delimiter)
java.lang.NullPointerException
- An argument is null.public static boolean endsWith(java.lang.String value, char suffix)
java.lang.NullPointerException
- An argument is null.public static boolean endsWith(java.lang.String value, java.lang.String suffix)
java.lang.NullPointerException
- An argument is null.public static boolean endsWith(java.lang.String value, java.lang.String suffix, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static boolean endsWith(java.lang.String value, java.lang.String suffix, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.public static boolean equal(java.lang.String a, java.lang.String b)
java.lang.NullPointerException
- An argument is null.public static boolean equal(java.lang.String a, java.lang.String b, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static boolean equal(java.lang.String a, java.lang.String b, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.public static int indexOf(char[] array, char ch)
java.lang.NullPointerException
- An argument is null.public static int indexOf(java.lang.String value, java.lang.String part)
java.lang.NullPointerException
- An argument is null.public static int indexOf(java.lang.String value, java.lang.String part, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static int indexOf(java.lang.String value, java.lang.String part, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.public static int indexOf(java.lang.String value, java.lang.String part, int startIndex, int count, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static int indexOf(java.lang.String value, java.lang.String part, int startIndex, int count, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.java.lang.IndexOutOfBoundsException
- An index is out of boundsjava.lang.IllegalArgumentException
- An argument is out of rangepublic static int indexOf(java.lang.String value, java.lang.String part, int occurrence, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.java.lang.IllegalArgumentException
- Occurrence is out of range.public static int indexOf(java.lang.String value, java.lang.String part, int occurrence, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.java.lang.IllegalArgumentException
- Occurrence is out of range.public static java.lang.String insert(java.lang.String value, int index, java.lang.String insertedValue)
java.lang.NullPointerException
- An argument is null.java.lang.IndexOutOfBoundsException
- Index is out of range.public static boolean isNullOrEmpty(java.lang.String value)
public static boolean isNullOrBlank(java.lang.String value)
public static int lastIndexOf(char[] array, char ch)
java.lang.NullPointerException
- An argument is null.public static int lastIndexOf(java.lang.String value, java.lang.String part)
java.lang.NullPointerException
- An argument is null.public static int lastIndexOf(java.lang.String value, java.lang.String part, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static int lastIndexOf(java.lang.String value, java.lang.String part, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.public static int lastIndexOf(java.lang.String value, java.lang.String part, int startIndex, int count, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.java.lang.IndexOutOfBoundsException
- An index is out of boundsjava.lang.IllegalArgumentException
- An argument is out of rangepublic static int lastIndexOf(java.lang.String value, java.lang.String part, int startIndex, int count, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.java.lang.IndexOutOfBoundsException
- An index is out of boundsjava.lang.IllegalArgumentException
- An argument is out of rangepublic static int lastIndexOf(java.lang.String value, java.lang.String part, int occurrenceFromEnd, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.java.lang.IllegalArgumentException
- Occurrence is out of range.public static int lastIndexOf(java.lang.String value, java.lang.String part, int occurrenceFromEnd, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.java.lang.IllegalArgumentException
- Occurrence is out of range.public static boolean match(java.lang.String a, MatchType stringMatch, java.lang.String b, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static boolean match(java.lang.String a, MatchType stringMatch, java.lang.String b, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.public static java.lang.String padRight(java.lang.String value, int totalLength, char pad)
java.lang.NullPointerException
- An argument is null.java.lang.IllegalArgumentException
- An invalid argument was given.public static java.lang.String padLeft(java.lang.String value, int totalLength, char pad)
java.lang.NullPointerException
- An argument is null.java.lang.IllegalArgumentException
- An invalid argument was given.public static boolean parseBool(java.lang.String value)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static boolean parseBool(java.lang.String value, java.lang.String trueValue, java.lang.String falseValue, StringComparison comparisonType)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static char parseChar(java.lang.String value)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static char parseChar(java.lang.String value, char minValue, char maxValue)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static org.joda.time.LocalDateTime parseDateTime(java.lang.String value)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static org.joda.time.LocalDateTime parseDateTime(java.lang.String value, org.joda.time.format.DateTimeFormatter formatter)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static org.joda.time.LocalDateTime parseDateTime(java.lang.String value, org.joda.time.LocalDateTime minValue, org.joda.time.LocalDateTime maxValue, org.joda.time.format.DateTimeFormatter formatter)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static java.math.BigDecimal parseDecimal(java.lang.String value)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static java.math.BigDecimal parseDecimal(java.lang.String value, java.math.BigDecimal minValue, java.math.BigDecimal maxValue)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static double parseDouble(java.lang.String value)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static double parseDouble(java.lang.String value, double minValue, double maxValue, boolean allowInfinity, boolean allowNaN)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static float parseFloat(java.lang.String value)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static float parseFloat(java.lang.String value, float minValue, float maxValue, boolean allowInfinity, boolean allowNaN)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static byte parseInt8(java.lang.String value)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static byte parseInt8(java.lang.String value, byte minValue, byte maxValue)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static short parseInt16(java.lang.String value)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static short parseInt16(java.lang.String value, short minValue, short maxValue)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static int parseInt32(java.lang.String value)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static int parseInt32(java.lang.String value, int minValue, int maxValue)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static long parseInt64(java.lang.String value)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static long parseInt64(java.lang.String value, long minValue, long maxValue)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static Int128 parseInt128(java.lang.String value)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static Int128 parseInt128(java.lang.String value, Int128 minValue, Int128 maxValue)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static java.lang.String parseString(java.lang.String value)
java.lang.NullPointerException
- When an argument is nullpublic static java.lang.String parseString(java.lang.Object value)
public static org.joda.time.Duration parseTimeSpan(java.lang.String value)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static org.joda.time.Duration parseTimeSpan(java.lang.String value, org.joda.time.Duration minValue, org.joda.time.Duration maxValue)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static UnsignedByte parseUInt8(java.lang.String value)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static UnsignedByte parseUInt8(java.lang.String value, UnsignedByte minValue, UnsignedByte maxValue)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static UnsignedShort parseUInt16(java.lang.String value)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static UnsignedShort parseUInt16(java.lang.String value, UnsignedShort minValue, UnsignedShort maxValue)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static UnsignedInteger parseUInt32(java.lang.String value)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static UnsignedInteger parseUInt32(java.lang.String value, UnsignedInteger minValue, UnsignedInteger maxValue)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static UnsignedLong parseUInt64(java.lang.String value)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static UnsignedLong parseUInt64(java.lang.String value, UnsignedLong minValue, UnsignedLong maxValue)
java.lang.NullPointerException
- An argument is null.java.lang.NumberFormatException
- Parsed value is outside of configured range, or not of correct type.public static java.lang.String replace(java.lang.String value, java.lang.String textToReplace, java.lang.String replaceWithText, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static java.lang.String replace(java.lang.String value, java.lang.String textToReplace, java.lang.String replaceWithText, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.public static void replace(java.lang.StringBuilder builder, java.lang.String textToReplace, java.lang.String replaceWithText)
java.lang.NullPointerException
- An argument is null.public static java.lang.String repeat(char value, int repetitions)
java.lang.NullPointerException
- An argument is null.java.lang.IllegalArgumentException
- Repetitions argument is out of range.public static java.lang.String repeat(java.lang.String value, int repetitions)
java.lang.NullPointerException
- An argument is null.java.lang.IllegalArgumentException
- Repetitions argument is out of range.public static java.lang.String reverse(java.lang.String value)
java.lang.NullPointerException
- An argument is null.public static boolean sequenceEqual(char[] a, char[] b)
java.lang.NullPointerException
- An argument is null.public static boolean sequenceEqual(char[] a, int startIndexA, char[] b, int startIndexB, int count)
java.lang.NullPointerException
- An argument is null.java.lang.IndexOutOfBoundsException
- An index is out of bounds.java.lang.IllegalArgumentException
- An argument is out of range.public static java.util.List<char[]> split(char[] values, char delimiter)
java.lang.NullPointerException
- When an argument is null, or an item in the iterable is null.public static java.lang.String[] split(java.lang.String text, char delimiter)
java.lang.NullPointerException
- An argument is null.public static java.lang.String[] split(java.lang.String text, char delimiter, StringSplitOptions options)
java.lang.NullPointerException
- An argument is null.public static java.lang.String[] split(java.lang.String text, char[] delimiters, StringSplitOptions options)
java.lang.NullPointerException
- An argument is null.public static java.lang.String[] split(java.lang.String text, java.lang.String delimiter)
java.lang.NullPointerException
- An argument is null.public static java.lang.String[] split(java.lang.String text, java.lang.String delimiter, StringSplitOptions options)
java.lang.NullPointerException
- An argument is null.public static java.lang.String[] split(java.lang.String text, java.lang.String[] delimiters, StringSplitOptions options)
java.lang.NullPointerException
- An argument is null.public static java.lang.String[] splitAnchor(java.lang.String text, java.lang.Iterable<java.lang.String> delimiters)
java.lang.NullPointerException
- An argument is null.java.lang.IllegalArgumentException
- A delimiter is null or empty.public static java.lang.String[] splitAnchor(java.lang.String text, java.lang.String[] delimiters)
java.lang.NullPointerException
- An argument is null.java.lang.IllegalArgumentException
- A delimiter is null or empty.public static boolean startsWith(java.lang.String value, char prefix)
java.lang.NullPointerException
- An argument is null.public static boolean startsWith(java.lang.String value, java.lang.String prefix)
java.lang.NullPointerException
- An argument is null.public static boolean startsWith(java.lang.String value, java.lang.String prefix, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static boolean startsWith(java.lang.String value, java.lang.String prefix, java.util.Locale locale, java.text.Collator collator, boolean caseSensitive)
java.lang.NullPointerException
- An argument is null.public static java.lang.String substring(java.lang.String value, int length)
java.lang.NullPointerException
- An argument is null.java.lang.IndexOutOfBoundsException
- The length is out of range.public static java.lang.String substring(java.lang.String value, int startIndex, int length)
java.lang.NullPointerException
- An argument is null.java.lang.IndexOutOfBoundsException
- The index or length is out of range.public static java.lang.String titleCase(java.lang.String value)
java.lang.NullPointerException
- An argument is nullpublic static java.lang.Character[] to(java.lang.Character start, java.lang.Character end)
java.lang.NullPointerException
- An argument is nulljava.lang.IllegalArgumentException
- When the end is before startpublic static java.lang.String trimStart(java.lang.String value, char ch)
java.lang.NullPointerException
- When an argument is null.public static java.lang.String trimStart(java.lang.String value, char[] chars)
java.lang.NullPointerException
- When an argument is null.public static java.lang.String trimEnd(java.lang.String value, char ch)
java.lang.NullPointerException
- When an argument is null.public static java.lang.String trimEnd(java.lang.String value, char[] chars)
java.lang.NullPointerException
- When an argument is null.public static java.lang.String trim(java.lang.String value)
java.lang.NullPointerException
- When an argument is null.public static java.lang.String trim(java.lang.String value, char[] chars)
java.lang.NullPointerException
- When an argument is null.public static java.lang.String trimStart(java.lang.String value, java.lang.String trimmed, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static java.lang.String trimEnd(java.lang.String value, java.lang.String trimmed, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static java.lang.String trim(java.lang.String value, java.lang.String trimmed, StringComparison stringComparison)
java.lang.NullPointerException
- An argument is null.public static java.lang.String truncate(java.lang.String value, int endIndex)
java.lang.NullPointerException
- An argument is null.java.lang.IndexOutOfBoundsException
- The index is out of bounds.public static java.lang.String truncateIfLonger(java.lang.String value, int endIndex)
java.lang.NullPointerException
- An argument is null.java.lang.IndexOutOfBoundsException
- The index is negative.public static TryResult<java.lang.Boolean> tryParseBool(java.lang.String value)
public static TryResult<java.lang.Boolean> tryParseBool(java.lang.String value, java.lang.String trueValue, java.lang.String falseValue, StringComparison comparisonType)
public static TryResult<java.lang.Character> tryParseChar(java.lang.String value)
public static TryResult<java.lang.Character> tryParseChar(java.lang.String value, char minValue, char maxValue)
public static TryResult<org.joda.time.LocalDateTime> tryParseDateTime(java.lang.String value)
public static TryResult<org.joda.time.LocalDateTime> tryParseDateTime(java.lang.String value, org.joda.time.format.DateTimeFormatter fmt)
public static TryResult<org.joda.time.LocalDateTime> tryParseDateTime(java.lang.String value, org.joda.time.LocalDateTime minValue, org.joda.time.LocalDateTime maxValue, org.joda.time.format.DateTimeFormatter fmt)
public static TryResult<java.math.BigDecimal> tryParseDecimal(java.lang.String value)
public static TryResult<java.math.BigDecimal> tryParseDecimal(java.lang.String value, java.math.BigDecimal minValue, java.math.BigDecimal maxValue)
public static TryResult<java.lang.Double> tryParseDouble(java.lang.String value)
public static TryResult<java.lang.Double> tryParseDouble(java.lang.String value, double minValue, double maxValue, boolean allowInfinity, boolean allowNaN)
public static TryResult<java.lang.Float> tryParseFloat(java.lang.String value)
public static TryResult<java.lang.Float> tryParseFloat(java.lang.String value, float minValue, float maxValue, boolean allowInfinity, boolean allowNaN)
public static TryResult<java.lang.Byte> tryParseInt8(java.lang.String value)
public static TryResult<java.lang.Byte> tryParseInt8(java.lang.String value, byte minValue, byte maxValue)
public static TryResult<java.lang.Short> tryParseInt16(java.lang.String value)
public static TryResult<java.lang.Short> tryParseInt16(java.lang.String value, short minValue, short maxValue)
public static TryResult<java.lang.Integer> tryParseInt32(java.lang.String value)
public static TryResult<java.lang.Integer> tryParseInt32(java.lang.String value, int minValue, int maxValue)
public static TryResult<java.lang.Long> tryParseInt64(java.lang.String value)
public static TryResult<java.lang.Long> tryParseInt64(java.lang.String value, long minValue, long maxValue)
public static TryResult<Int128> tryParseInt128(java.lang.String value)
public static TryResult<Int128> tryParseInt128(java.lang.String value, Int128 minValue, Int128 maxValue)
public static TryResult<java.net.InetAddress> tryParseIpAddress(java.lang.String value)
public static TryResult<org.joda.time.Duration> tryParseTimeSpan(java.lang.String value)
public static TryResult<org.joda.time.Duration> tryParseTimeSpan(java.lang.String value, org.joda.time.Duration minValue, org.joda.time.Duration maxValue)
public static TryResult<UnsignedByte> tryParseUInt8(java.lang.String value)
public static TryResult<UnsignedByte> tryParseUInt8(java.lang.String value, UnsignedByte minValue, UnsignedByte maxValue)
public static TryResult<UnsignedShort> tryParseUInt16(java.lang.String value)
public static TryResult<UnsignedShort> tryParseUInt16(java.lang.String value, UnsignedShort minValue, UnsignedShort maxValue)
public static TryResult<UnsignedInteger> tryParseUInt32(java.lang.String value)
public static TryResult<UnsignedInteger> tryParseUInt32(java.lang.String value, UnsignedInteger minValue, UnsignedInteger maxValue)
public static TryResult<UnsignedLong> tryParseUInt64(java.lang.String value)
public static TryResult<UnsignedLong> tryParseUInt64(java.lang.String value, UnsignedLong minValue, UnsignedLong maxValue)
public static TryResult<java.util.UUID> tryParseUuid(java.lang.String value)
public static java.lang.Character[] until(java.lang.Character start, java.lang.Character end)
java.lang.NullPointerException
- An argument is nulljava.lang.IllegalArgumentException
- When the end is before start