public class CharSequenceUtil extends Object
Constructor and Description |
---|
CharSequenceUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsAt(CharSequence source,
CharSequence search,
int loc)
Returns true of the passed source sequence contains the specified search
sequence starting at the given location.
|
static boolean |
endsWith(CharSequence source,
CharSequence search)
Returns true if the source sequence ends with the search sequence.
|
static boolean |
startsWith(CharSequence source,
CharSequence search)
Returns true if the source sequence starts with the search sequence.
|
public static boolean containsAt(CharSequence source, CharSequence search, int loc)
public static boolean startsWith(CharSequence source, CharSequence search)
containsAt(java.lang.CharSequence, java.lang.CharSequence, int)
with location 0.public static boolean endsWith(CharSequence source, CharSequence search)
containsAt(java.lang.CharSequence, java.lang.CharSequence, int)
with calculated location.