Modifier and Type | Field and Description |
---|---|
static String |
DOT |
static String |
EMPTY |
static String |
EQUALS |
static String |
FILE_SEPARATOR |
static String |
GAP |
static String |
HASH |
static String |
LINE_SEPARATOR |
static String |
LINE_SEPARATOR_CR
Mac OS 9, ZX Spectrum :-), etc.
|
static String |
LINE_SEPARATOR_CRLF
DOS, OS/2, Microsoft Windows, etc.
|
static String |
LINE_SEPARATOR_LF
Linux, BDS, etc.
|
static String |
NOT_AVAILABLE |
static String |
SLASH |
static String |
THIS |
static String |
UNDERSCORE |
static String |
URI_PROCOTOL_JAR |
static String |
URL_PROCOTOL_FILE |
Constructor and Description |
---|
Strings() |
Modifier and Type | Method and Description |
---|---|
static String |
capitalizeFully(String text,
Character delimiter)
Capitalizes all the delimiter separated words.
|
static boolean |
containsOnlyDigits(String text) |
static boolean |
containsOnlyWhitespace(String text) |
static boolean |
containsWhitespace(String text) |
static boolean |
isEmpty(CharSequence sequence) |
static boolean |
isListLiteral(String value) |
static boolean |
isListLiteralEnd(char character) |
static boolean |
isListLiteralStart(char character) |
static boolean |
isStringLiteralSeparator(char character) |
static String |
removeSuffix(String text,
String suffix) |
static String |
repeat(String text,
int times,
String separator) |
static String |
replace(String text,
String search,
String replacement) |
static List<String> |
split(String text,
String delimiter) |
static String |
substringAfter(String text,
String delimiter) |
static String |
uncapitalize(String word) |
public static final String EMPTY
public static final String GAP
public static final String LINE_SEPARATOR
public static final String LINE_SEPARATOR_LF
public static final String LINE_SEPARATOR_CRLF
public static final String LINE_SEPARATOR_CR
public static final String SLASH
public static final String FILE_SEPARATOR
public static final String DOT
public static final String UNDERSCORE
public static final String EQUALS
public static final String NOT_AVAILABLE
public static final String URL_PROCOTOL_FILE
public static final String URI_PROCOTOL_JAR
public static final String THIS
public static final String HASH
public static boolean isStringLiteralSeparator(char character)
character
- true
if the char is a string literal separator,
false
otherwisepublic static boolean isEmpty(CharSequence sequence)
sequence
- true
if the given sequence is null or emptypublic static String uncapitalize(String word)
word
- public static String capitalizeFully(String text, Character delimiter)
text
- delimiter
- public static String replace(String text, String search, String replacement)
text
- search
- replacement
- public static String removeSuffix(String text, String suffix)
text
- suffix
- public static List<String> split(String text, String delimiter)
text
- delimiter
- public static boolean containsWhitespace(String text)
text
- true
if the given text contains a whitespace
characterpublic static boolean containsOnlyWhitespace(String text)
text
- true
if the given text contains only whitespace
characterspublic static boolean containsOnlyDigits(String text)
text
- true
if the given text contains only digitspublic static String repeat(String text, int times, String separator)
text
- public static String substringAfter(String text, String delimiter)
text
- delimiter
- public static boolean isListLiteralStart(char character)
public static boolean isListLiteralEnd(char character)
public static boolean isListLiteral(String value)
Copyright © 2017. All rights reserved.