|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjoptsimple.internal.Strings
public final class Strings
| Field Summary | |
|---|---|
static String |
EMPTY
|
static String |
LINE_SEPARATOR
|
static String |
SINGLE_QUOTE
|
| Method Summary | |
|---|---|
static boolean |
isNullOrEmpty(String target)
Tells whether the given string is either or consists solely of whitespace characters. |
static String |
join(List<String> pieces,
String separator)
Gives a string consisting of the string representations of the elements of a given array of objects, each separated by a given separator string. |
static String |
join(String[] pieces,
String separator)
Gives a string consisting of the elements of a given array of strings, each separated by a given separator string. |
static String |
repeat(char ch,
int count)
Gives a string consisting of the given character repeated the given number of times. |
static String |
surround(String target,
char begin,
char end)
Gives a string consisting of a given string prepended and appended with surrounding characters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String EMPTY
public static final String SINGLE_QUOTE
public static final String LINE_SEPARATOR
| Method Detail |
|---|
public static String repeat(char ch,
int count)
ch - the character to repeatcount - how many times to repeat the character
public static boolean isNullOrEmpty(String target)
or consists solely of whitespace characters.
target - string to check
true if the target string is null or empty
public static String surround(String target,
char begin,
char end)
target - a stringbegin - character to prependend - character to append
public static String join(String[] pieces,
String separator)
pieces - the strings to joinseparator - the separator
public static String join(List<String> pieces,
String separator)
pieces - the elements whose string representations are to be joinedseparator - the separator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||