public abstract class StringUtils
extends java.lang.Object
String manipulation
methods.| Constructor and Description |
|---|
StringUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
join(double[] array,
java.lang.String seperator)
Creates a new
String object, containing the elements of a
supplied array, joined by a given seperator. |
static java.lang.String |
join(float[] array,
java.lang.String seperator)
Creates a new
String object, containing the elements of a
supplied array, joined by a given seperator. |
static java.lang.String |
join(int[] array,
java.lang.String seperator)
Creates a new
String object, containing the elements of a
supplied array, joined by a given seperator. |
static java.lang.String |
join(long[] array,
java.lang.String seperator)
Creates a new
String object, containing the elements of a
supplied array, joined by a given seperator. |
static java.lang.String |
join(java.lang.Object[] array,
java.lang.String seperator)
Creates a new
String object, containing the elements of a
supplied array, joined by a given seperator. |
static java.lang.String |
repeat(java.lang.String source,
int count)
Creates a new string that contains the provided string a number of
times.
|
public static java.lang.String repeat(java.lang.String source,
int count)
source - The string that will be repeated.count - The number of times that the string will be repeated.String object containing the repeated
concatenation result.public static java.lang.String join(java.lang.Object[] array,
java.lang.String seperator)
String object, containing the elements of a
supplied array, joined by a given seperator.array - The object array containing the elements to join.seperator - The seperator used to join the string elements.String with the join result.public static java.lang.String join(double[] array,
java.lang.String seperator)
String object, containing the elements of a
supplied array, joined by a given seperator.array - The double array containing the values to join.seperator - The seperator used to join the string elements.String with the join result.public static java.lang.String join(float[] array,
java.lang.String seperator)
String object, containing the elements of a
supplied array, joined by a given seperator.array - The float array containing the values to join.seperator - The seperator used to join the string elements.String with the join result.public static java.lang.String join(int[] array,
java.lang.String seperator)
String object, containing the elements of a
supplied array, joined by a given seperator.array - The integer array containing the values to join.seperator - The seperator used to join the string elements.String with the join result.public static java.lang.String join(long[] array,
java.lang.String seperator)
String object, containing the elements of a
supplied array, joined by a given seperator.array - The long array containing the values to join.seperator - The seperator used to join the string elements.String with the join result.