public static CharSequence | asCharSequence( Gets a CharSequence view for the argument character array. |
public static CharSequence | asCharSequence( Gets a CharSequence view for the argument character array with the given range. |
public static Iterable< | asStringIterable( Gets a view for the iterable that creates an iterator that converts the elements of it to Strings. |
public static Iterator< | asStringIterator( Gets a forwarding iterator for the argument that converts the returned elements to Strings. |
public static int | Compares two string in natural order with possible null values. |
public static int | Compares two string in natural order in an ignore-case manner with possible null values. |
public static int | Compares two string in natural order with possible null values. |
public static int | Compares two string in natural order in an ignore-case manner with possible null values. |
public static int | count( Counts the number of occurrences of a character in the given character sequence. |
public static boolean | endsWithIgnoreCase( Checks if the given string ends with the specified prefix in a case-insensitive manner. |
public static int | getLineIndex( Searches the index of the line based on an index map and a character offset. |
public static int[] | getLineIndexMap( Creates an offset map for each line in the parameter string. |
public static int | getLinePositionIndex( Gets the position in the line for a given line index map and character offset. |
public static int | getLinePositionIndex( Gets the position in the line for a given line, index map, and offset. |
public static int | hexCharToValue( Converts a hexadecimal digit to integral value. |
public static int | indexOf( Gets the index of the first occurrence of the given character in the argument char sequence. |
public static boolean | isConsistsOnlyChar( Checks if the argument char sequence consists of only the given character. |
public static boolean | Checks if the argument string has an integral format. |
public static int | lastIndexOf( Gets the index of the last occurrence of the given character in the argument char sequence. |
public static int | length( Gets the length of the argument character sequence, returning 0 if null . |
public static String | Gets a string that immediately follows the argument string given that they're ordered by natural order. |
public static Comparator< | Gets the comparator that compares the argument strings by natural order, and orders null s first if
any. |
public static Comparator< | Gets the comparator that compares the argument strings by natural order, and orders null s last if
any. |
public static byte[] | Converts a hexadecimal character sequence back to byte array representation. |
public static String | removeFromEnd( Removes the specified number of characters from the end of the given string. |
public static String | repeatCharacter( Creates a string that has only the given character repeated in it the given number of times. |
public static Iterable< | splitCharSequenceIterable( Creates an iterable that creates iterators that splits up the argument sequence by the given character. |
public static Iterator< | splitCharSequenceIterator( Creates an iterator that takes the argument sequence, and splits it up based on the given character. |
public static boolean | startsWithIgnoreCase( Checks if the given string starts with the specified prefix in a case-insensitive manner. |
public static CharSequence | subCharSequence( Gets a sub char sequence of the argument with the given range. |
public static String | toHexString( Converts the contents of the argument array to hexadecimal string representation. |
public static String | toHexString( Converts the contents in the given range of the argument array to hexadecimal string representation. |
public static void | toHexString( Converts the contents in the given range of the argument array to hexadecimal string representation and appends
it to the given string builder. |
public static void | toHexString( Converts the contents of the argument array to hexadecimal string representation and appends it to the given
string builder. |
public static String | toStringJoin( Creates a string representation of the argument elements with the specified format. |
public static String | toStringJoin( Creates a string representation of the argument elements with the specified format. |
public static String | toStringJoin( Creates a string representation of the argument elements with the specified format. |
public static String | toStringJoin( Creates a string representation of the argument elements joined with the given delimiter. |
public static String | toStringJoin( Creates a string representation of the argument elements joined with the given delimiter. |
public static String | toStringJoin( Creates a string representation of the argument elements joined with the given delimiter. |
public static String | toStringLimit( Converts the argument objects to string representation, but limiting its length if it is longer than the maximum
limit. |
public static String | toStringLimit( Converts the argument objects to string representation, but limiting its length if it is longer than the maximum
limit, and adding an ellipsize if limited. |
public static String | toStringQuoted( Returns the argument string with quotes around it unless it is null . |
The returned CharSequence will use the argument array for its underlying data.
Any modifications made to the array will be reflected on the returned char sequence.
The method may return a shared singleton object if the argument is empty.
null
.The returned CharSequence will use the argument array for its underlying data.
Any modifications made to the array in the given range will be reflected on the returned char sequence.
The method may return a shared singleton object if the specified range is empty.
null
.Any modifications made to the argument will reflect on the returned iterable. The returned iterable creates iterators that support removal if and only if the argument supports removals.
null
if the argument is
null
.The returned iterator creates iterators that support removal if and only if the argument supports removals.
null
if the argument is
null
.null
values.
Any null
values are ordered first.
null
values.
Any null
values are ordered first.
null
values.
Any null
values are ordered last.
null
values.
Any null
values are ordered last.
This method iterates over the characters of the sequence, and counts the occurrences of the specified character.
null
.true
if the string ends with the prefix.null
.The method determines which is the corresponding line for the given character offset.
The parameter string is examined and each starting offset for each line is returned in the result array. The
first element is always 0. The n
th element in the array represents the offset for the
n
th line, and so on.
Each element in the resulting array represents the character offset in the parameter string where the given line starts.
The line ending is determined by the '\n'
character.
null
.This method searches the corresponding line for the offset and returns the offset in the found line.
The parameter line index should be a result of getLineIndex(
This method is only publicly available to avoid searching the line index multiple times if not necessary. If you
don't use the line index directly, consider using getLinePositionIndex(
The argument must be a character in the range of '0' - '9'
, 'a' - 'f'
,
'A' - 'F'
which is the range of the characters of a number in base 16.
null
in which case the character won't be found.An empty sequence is considered to consist only of the given character.
true
if the char sequence is non-null
and contains only the given character.
A string is considered to be in integral format if it only contains numeric characters in the range of
'0' - '9'
, and may be optionally prefixed by a sign character either '-'
or
'+'
.
A string that only contains a single sign character is not considered to be integral.
true
if the argument is non-null
and has the integral format defined by the
above rules.null
in which case the character won't be found.null
.
For the input string S, and result R, there are no string X for which the following is true
:
S < X < RThe returned string R will compare to be greater than the argument.
The returned string may have characters that are not displayable, or otherwise semantically incorrect. It should not be used in any other way than comparing other strings to it.
null
.null
s first if
any.null
s last if
any.The argument sequence length must be a multiply of 2 and contain only hexadecimal characters.
null
.null
.
The returned iterable will create iterators that work in the same way as
splitCharSequenceIterator(
null
.The returned iterator will iterate over the split parts that doesn't contain the given character.
If multiple split characters occurr after each other, the returned iterator will return empty sequences for the inner parts. If the character is at the start or end of the string, a preceeding and following empty sequence will be returned.
null
.true
if the string starts with the prefix.null
.
This method can be used when the caller doesn't want to use CharSequence.subSequence(
This method will return a char sequence that forwards its calls to its subject. Any subsequence that is created on the result will not create long chaing of references, but will use the argument char sequence, only modifying the view range.
If the argument char sequence is already a type of the same type that this method would return, this will only
call CharSequence.subSequence(
Warning: This method takes an offset-length
range instead of a start-end
range,
unlike CharSequence.subSequence(
If the created range is empty, this method may return a singleton shared object.
null
.Each byte will be split into two hexadecimal characters, where the 4 high order bits is the first character, and the 4 low order bits are the second.
null
.Each byte will be split into two hexadecimal characters, where the 4 high order bits is the first character, and the 4 low order bits are the second.
null
.Each byte will be split into two hexadecimal characters, where the 4 high order bits is the first character, and the 4 low order bits are the second.
null
.Each byte will be split into two hexadecimal characters, where the 4 high order bits is the first character, and the 4 low order bits are the second.
null
.The method converts the given elements into string representation and joins them into a string with the given delimiter between them. The result is then prepended with the given prefix, and appended with the given suffix.
All arguments are null
able, in which case the corresponding part will not be appended to the result.
If the elements are null
, the delimiters won't be printed either. If all arguments are
null
, an empty string is returned.
The method converts the given elements into string representation and joins them into a string with the given delimiter between them. The result is then prepended with the given prefix, and appended with the given suffix.
All arguments are null
able, in which case the corresponding part will not be appended to the result.
If the elements are null
, the delimiters won't be printed either. If all arguments are
null
, an empty string is returned.
The method converts the given elements into string representation and joins them into a string with the given delimiter between them. The result is then prepended with the given prefix, and appended with the given suffix.
All arguments are null
able, in which case the corresponding part will not be appended to the result.
If the elements are null
, the delimiters won't be printed either. If all arguments are
null
, an empty string is returned.
Same as:
toStringJoin(null, delimiter, elements, null);
Same as:
toStringJoin(null, delimiter, elements, null);
Same as:
toStringJoin(null, delimiter, elements, null);
This method works the same way as toStringLimit(
null
."null"
(without quotes in the actual result string) if the argument is null
, or
the given string with '\"'
characters around it.