| Constructor and Description |
|---|
Strings() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isDirectoryPattern(String pattern)
Check if pattern is a directory pattern ending with a path separator
|
static List<String> |
split(String pattern,
char slash)
Splits given string to substrings by given separator
|
static String |
stripTrailing(String pattern,
char c)
Strip trailing characters
|
static String |
stripTrailingWhitespace(String pattern)
Strip trailing whitespace characters
|
public static String stripTrailing(String pattern, char c)
pattern - non nullc - character to removepublic static String stripTrailingWhitespace(String pattern)
pattern - non nullpublic static boolean isDirectoryPattern(String pattern)
pattern - non nulltrue if the last character, which is not whitespace, is a
path separatorCopyright © 2018 Eclipse JGit Project. All rights reserved.