All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ow2.bonita.util.ArrayUtil Maven / Gradle / Ivy

package org.ow2.bonita.util;

public class ArrayUtil {

  public static String toString(Object[] array) {
    if (array == null) {
      return "null";
    } else {
      StringBuffer buffer = new StringBuffer();
      buffer.append("[");
      for (int i = 0; i < array.length; i++) {
        Object o = array[i];
        if (o != null) {
          buffer.append(o);
        } else {
          buffer.append("null");
        }
        if (i != array.length - 1) {
          buffer.append("|");
        }
      }
      buffer.append("]");
      return buffer.toString();
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy