public final class StringUtils extends Object
Modifier and Type | Field and Description |
---|---|
static Map<String,Pattern> |
PATTERN_MAP |
Modifier and Type | Method and Description |
---|---|
static String |
addDefaultPortIfMissing(String urlString) |
static String |
addDefaultPortIfMissing(String urlString,
String defaultPort) |
static String |
capitalize(String name)
Return input string with first character in upper case.
|
static String |
diff(String str1,
String str2) |
static String |
extract(String string,
String startToken,
String endToken) |
static String |
formatVersionNumber(String target) |
static String |
getFirstFound(String contents,
String regex) |
static String |
getFirstNotEmpty(List<String> list) |
static String |
getFirstNotEmpty(String str,
String separator) |
static List<String> |
getFound(String contents,
String regex) |
static List<String> |
getParts(String str,
String separator) |
static URL |
getURL(String spec) |
static boolean |
isEmpty(List<String> list) |
static boolean |
isEmpty(String str) |
static boolean |
isEqualUri(String uri1,
String uri2) |
static boolean |
isFileAbsolute(String file) |
static boolean |
isFileExist(String file) |
static String[] |
split(String s,
String regex) |
static String[] |
split(String s,
String regex,
int limit) |
static String |
uncapitalize(String str) |
static String |
wrapper(String string,
String startToken,
String endToken) |
public static boolean isFileExist(String file)
public static boolean isFileAbsolute(String file)
public static URL getURL(String spec) throws MalformedURLException
MalformedURLException
public static boolean isEmpty(String str)
public static String addDefaultPortIfMissing(String urlString, String defaultPort)
public static String capitalize(String name)
name
- input string.Copyright © 2018 JBoss by Red Hat. All rights reserved.