com.uwyn.rife.continuations.util
Class StringUtils

java.lang.Object
  extended by com.uwyn.rife.continuations.util.StringUtils

public abstract class StringUtils
extends Object

General purpose class containing common String manipulation methods.

Since:
1.0
Version:
$Revision: 2455 $
Author:
Geert Bevin (gbevin[remove] at uwyn dot com)

Constructor Summary
StringUtils()
           
 
Method Summary
static String join(double[] array, String seperator)
          Creates a new String object, containing the elements of a supplied array, joined by a given seperator.
static String join(float[] array, String seperator)
          Creates a new String object, containing the elements of a supplied array, joined by a given seperator.
static String join(int[] array, String seperator)
          Creates a new String object, containing the elements of a supplied array, joined by a given seperator.
static String join(long[] array, String seperator)
          Creates a new String object, containing the elements of a supplied array, joined by a given seperator.
static String join(Object[] array, String seperator)
          Creates a new String object, containing the elements of a supplied array, joined by a given seperator.
static String repeat(String source, int count)
          Creates a new string that contains the provided string a number of times.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

repeat

public static String repeat(String source,
                            int count)
Creates a new string that contains the provided string a number of times.

Parameters:
source - The string that will be repeated.
count - The number of times that the string will be repeated.
Returns:
A new String object containing the repeated concatenation result.
Since:
1.0

join

public static String join(Object[] array,
                          String seperator)
Creates a new String object, containing the elements of a supplied array, joined by a given seperator.

Parameters:
array - The object array containing the elements to join.
seperator - The seperator used to join the string elements.
Returns:
A new String with the join result.
Since:
1.0

join

public static String join(double[] array,
                          String seperator)
Creates a new String object, containing the elements of a supplied array, joined by a given seperator.

Parameters:
array - The double array containing the values to join.
seperator - The seperator used to join the string elements.
Returns:
A new String with the join result.
Since:
1.0

join

public static String join(float[] array,
                          String seperator)
Creates a new String object, containing the elements of a supplied array, joined by a given seperator.

Parameters:
array - The float array containing the values to join.
seperator - The seperator used to join the string elements.
Returns:
A new String with the join result.
Since:
1.0

join

public static String join(int[] array,
                          String seperator)
Creates a new String object, containing the elements of a supplied array, joined by a given seperator.

Parameters:
array - The integer array containing the values to join.
seperator - The seperator used to join the string elements.
Returns:
A new String with the join result.
Since:
1.0

join

public static String join(long[] array,
                          String seperator)
Creates a new String object, containing the elements of a supplied array, joined by a given seperator.

Parameters:
array - The long array containing the values to join.
seperator - The seperator used to join the string elements.
Returns:
A new String with the join result.
Since:
1.0

RIFE Project Page