|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xebialabs.deployit.util.ExtendedStringUtils
public class ExtendedStringUtils
Utility class for some useful String manipulations.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_JOIN_SEPARATOR
The default join separator used by join(Collection, Transformer). |
| Constructor Summary | |
|---|---|
ExtendedStringUtils()
|
|
| Method Summary | ||
|---|---|---|
static java.lang.String |
getQuotedString(java.lang.String str)
Returns the string wrapped between double quotes if it contains a space or if it is
empty. |
|
static
|
join(java.util.Collection<T> collection,
org.apache.commons.collections.Transformer toStringGenerator)
Joins the string representations of a collection to form one string using the default join separator. |
|
static
|
join(java.util.Collection<T> collection,
org.apache.commons.collections.Transformer toStringGenerator,
java.lang.String separator)
Joins the string representations of a collection to form one string. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_JOIN_SEPARATOR
join(Collection, Transformer).
| Constructor Detail |
|---|
public ExtendedStringUtils()
| Method Detail |
|---|
public static java.lang.String getQuotedString(java.lang.String str)
is
empty.
str - the string to quote
public static <T> java.lang.String join(java.util.Collection<T> collection,
org.apache.commons.collections.Transformer toStringGenerator)
default join separator.
T - the type of the collection members.collection - the collection to join.toStringGenerator - the Transformer that transforms a collection member to its string representation.
public static <T> java.lang.String join(java.util.Collection<T> collection,
org.apache.commons.collections.Transformer toStringGenerator,
java.lang.String separator)
T - the type of the collection members.collection - the collection to join.toStringGenerator - the Transformer that transforms a collection member to its string representation.separator - the string that will separate the strings when they are joined together.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||