org.android.activityminer.model.util
Class ArrayUtils

Package class diagram package ArrayUtils
java.lang.Object
  extended by org.android.activityminer.model.util.ArrayUtils

public class ArrayUtils
extends Object

Class with array utility functions


Field Summary
static String COMMA_SEPARATOR
          The separator character
 
Constructor Summary
ArrayUtils()
           
 
Method Summary
static Long[] toLongArray(String value, String separator)
          Converts a value string representation to an array of Long values
static String toString(Object[] array, String separator)
          Does create a string representation of an array the array of strings
static String[] toStringArray(String value, String separator)
          Converts a value string representation to an array of string values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMA_SEPARATOR

public static final String COMMA_SEPARATOR
The separator character

See Also:
Constant Field Values
Constructor Detail

ArrayUtils

public ArrayUtils()
Method Detail

toString

public static final String toString(Object[] array,
                                    String separator)
Does create a string representation of an array the array of strings

Parameters:
array - the array of strings
separator - the separator to use
Returns:
a string representation of the array

toStringArray

public static final String[] toStringArray(String value,
                                           String separator)
Converts a value string representation to an array of string values

Parameters:
value - the string representation of the values
separator - the separator to use
Returns:
an array with the string values

toLongArray

public static Long[] toLongArray(String value,
                                 String separator)
Converts a value string representation to an array of Long values

Parameters:
value - the string representation of the values
separator - the separator to use
Returns:
an array with the Long values