|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiweekly.util.StringUtils
public class StringUtils
Contains miscellaneous string utilities.
| Nested Class Summary | |
|---|---|
static interface |
StringUtils.JoinCallback<T>
Callback interface used with the join(Collection, String, JoinCallback) method. |
static interface |
StringUtils.JoinMapCallback<K,V>
Callback interface used with the join(Map, String, JoinMapCallback) method. |
| Constructor Summary | |
|---|---|
StringUtils()
|
|
| Method Summary | ||
|---|---|---|
static String |
join(Collection<String> collection,
String delimiter)
Joins a collection of strings into a delimited list. |
|
static
|
join(Collection<T> collection,
String delimiter,
StringUtils.JoinCallback<T> join)
Joins a collection of values into a delimited list. |
|
static
|
join(Map<K,V> map,
String delimiter,
StringUtils.JoinMapCallback<K,V> join)
Joins a map into a delimited list. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringUtils()
| Method Detail |
|---|
public static String join(Collection<String> collection,
String delimiter)
collection - the collection of stringsdelimiter - the delimiter (e.g. ",")
public static <T> String join(Collection<T> collection,
String delimiter,
StringUtils.JoinCallback<T> join)
collection - the collection of valuesdelimiter - the delimiter (e.g. ",")join - callback function to call on every element in the collection
public static <K,V> String join(Map<K,V> map,
String delimiter,
StringUtils.JoinMapCallback<K,V> join)
map - the mapdelimiter - the delimiter (e.g. ",")join - callback function to call on every element in the collection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||