|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.util.StringHelper
public final class StringHelper
Common string manipulation helpers
| Field Summary | |
|---|---|
static com.google.common.base.Joiner |
_JOINER
|
static com.google.common.base.Splitter |
_SPLITTER
|
static com.google.common.base.Joiner |
CSV_JOINER
|
static com.google.common.base.Joiner |
DOT_JOINER
|
static com.google.common.base.Joiner |
JOINER
|
static com.google.common.base.Joiner |
PATH_ARG_JOINER
|
static com.google.common.base.Joiner |
PATH_JOINER
|
static com.google.common.base.Joiner |
SSV_JOINER
|
static com.google.common.base.Splitter |
SSV_SPLITTER
|
| Constructor Summary | |
|---|---|
StringHelper()
|
|
| Method Summary | |
|---|---|
static String |
_join(Object... args)
Join on underscore |
static Iterable<String> |
_split(CharSequence s)
Split on _ & trim results |
static String |
cjoin(Object... args)
Join on comma. |
static String |
djoin(Object... args)
Join on dot |
static boolean |
isAbsUrl(CharSequence url)
Check whether a url is absolute or note |
static String |
join(Object... args)
Join without separator |
static String |
joins(String sep,
Object... args)
Join with a separator |
static String |
pajoin(Object... args)
Join on slash & colon (e.g., path args in routing spec) |
static String |
percent(double value)
|
static String |
pjoin(Object... args)
Join on slash |
static String |
sjoin(Object... args)
Join on space. |
static Iterable<String> |
split(CharSequence s)
Split on space & trim results. |
static String |
ujoin(String pathPrefix,
String... args)
Join url components |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final com.google.common.base.Joiner SSV_JOINER
public static final com.google.common.base.Joiner CSV_JOINER
public static final com.google.common.base.Joiner JOINER
public static final com.google.common.base.Joiner _JOINER
public static final com.google.common.base.Joiner PATH_JOINER
public static final com.google.common.base.Joiner PATH_ARG_JOINER
public static final com.google.common.base.Joiner DOT_JOINER
public static final com.google.common.base.Splitter SSV_SPLITTER
public static final com.google.common.base.Splitter _SPLITTER
| Constructor Detail |
|---|
public StringHelper()
| Method Detail |
|---|
public static String sjoin(Object... args)
args - to join
public static String cjoin(Object... args)
args - to join
public static String djoin(Object... args)
args - to join
public static String _join(Object... args)
args - to join
public static String pjoin(Object... args)
args - to join
public static String pajoin(Object... args)
args - to join
public static String join(Object... args)
args -
public static String joins(String sep,
Object... args)
sep - the separatorargs - to join
public static Iterable<String> split(CharSequence s)
s - the string to split
public static Iterable<String> _split(CharSequence s)
s - the string to split
public static boolean isAbsUrl(CharSequence url)
url - to check
public static String ujoin(String pathPrefix,
String... args)
pathPrefix - for relative urlsargs - url components to join
public static String percent(double value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||