Java Utililty Methods Object Array Convert To

List of utility methods to do Object Array Convert To

Description

The list of methods to do Object Array Convert To are organized into topic(s).

Method

StringobjectArrayToRVector(Object[] rValues)
Convert the given values to an R vector.
StringBuffer sb = new StringBuffer(R_VECTOR_START);
if (rValues.length > 0) {
    sb.append(rValues[0].toString());
    for (int i = 1; i < rValues.length; i++) {
        sb.append(R_VECTOR_ELEMENT_SEPERATOR);
        sb.append(rValues[i].toString());
sb.append(R_VECTOR_END);
return sb.toString();
Integer[]objectToIntegerArray(Object[] objects)
object To Integer Array
if (objects == null) {
    return null;
} else if (objects.length == 0) {
    return new Integer[0];
Integer[] array = new Integer[objects.length];
int i = 0;
for (Object obj : objects) {
...
Object[]ObjectToSingleColumnArray(Object[][] array1)
Object To Single Column Array
if (array1 == null) {
    array1 = new Object[0][0];
Object[] mergedArray = new Object[array1.length];
int i = 0;
for (i = 0; i < array1.length; i++) {
    mergedArray[i] = array1[i][0];
return mergedArray;
String[][]ObjectToStringArray(Object[][] array1)
Object To String Array
if (array1 == null || array1.length < 1) {
    array1 = new Object[0][0];
String[][] mergedArray = null;
try {
    mergedArray = new String[array1.length][array1[0].length];
    int i = 0;
    for (i = 0; i < array1.length; i++) {
...