java.util.Arrays.deepToStringImpl()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(9.3k)|赞(0)|评价(0)|浏览(128)

本文整理了Java中java.util.Arrays.deepToStringImpl()方法的一些代码示例,展示了Arrays.deepToStringImpl()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Arrays.deepToStringImpl()方法的具体详情如下:
包路径:java.util.Arrays
类名称:Arrays
方法名:deepToStringImpl

Arrays.deepToStringImpl介绍

[英]Implementation method used by #deepToString(Object[]).
[中]#deepToString(Object[])使用的实现方法。

代码示例

代码示例来源:origin: robovm/robovm

/**
 * Creates a <i>"deep"</i> {@code String} representation of the
 * {@code Object[]} passed, such that if the array contains other arrays,
 * the {@code String} representation of those arrays is generated as well.
 * <p>
 * If any of the elements are primitive arrays, the generation is delegated
 * to the other {@code toString} methods in this class. If any element
 * contains a reference to the original array, then it will be represented
 * as {@code "[...]"}. If an element is an {@code Object[]}, then its
 * representation is generated by a recursive call to this method. All other
 * elements are converted via the {@link String#valueOf(Object)} method.
 *
 * @param array
 *            the {@code Object} array to convert.
 * @return the {@code String} representation of {@code array}.
 * @since 1.5
 */
public static String deepToString(Object[] array) {
  // Special case null to prevent NPE
  if (array == null) {
    return "null";
  }
  // delegate this to the recursive method
  StringBuilder buf = new StringBuilder(array.length * 9);
  deepToStringImpl(array, new Object[] { array }, buf);
  return buf.toString();
}

代码示例来源:origin: robovm/robovm

newOrigArrays[origArrays.length] = newArray;
deepToStringImpl(newArray, newOrigArrays, sb);

代码示例来源:origin: MobiVM/robovm

newOrigArrays[origArrays.length] = newArray;
deepToStringImpl(newArray, newOrigArrays, sb);

代码示例来源:origin: com.jtransc/jtransc-rt

/**
 * Creates a <i>"deep"</i> {@code String} representation of the
 * {@code Object[]} passed, such that if the array contains other arrays,
 * the {@code String} representation of those arrays is generated as well.
 * <p>
 * If any of the elements are primitive arrays, the generation is delegated
 * to the other {@code toString} methods in this class. If any element
 * contains a reference to the original array, then it will be represented
 * as {@code "[...]"}. If an element is an {@code Object[]}, then its
 * representation is generated by a recursive call to this method. All other
 * elements are converted via the {@link String#valueOf(Object)} method.
 *
 * @param array
 *            the {@code Object} array to convert.
 * @return the {@code String} representation of {@code array}.
 * @since 1.5
 */
public static String deepToString(Object[] array) {
  // Special case null to prevent NPE
  if (array == null) return "null";
  // delegate this to the recursive method
  StringBuilder buf = new StringBuilder(array.length * 9);
  deepToStringImpl(array, new Object[] { array }, buf);
  return buf.toString();
}

代码示例来源:origin: ibinti/bugvm

newOrigArrays[origArrays.length] = newArray;
deepToStringImpl(newArray, newOrigArrays, sb);

代码示例来源:origin: MobiVM/robovm

/**
 * Creates a <i>"deep"</i> {@code String} representation of the
 * {@code Object[]} passed, such that if the array contains other arrays,
 * the {@code String} representation of those arrays is generated as well.
 * <p>
 * If any of the elements are primitive arrays, the generation is delegated
 * to the other {@code toString} methods in this class. If any element
 * contains a reference to the original array, then it will be represented
 * as {@code "[...]"}. If an element is an {@code Object[]}, then its
 * representation is generated by a recursive call to this method. All other
 * elements are converted via the {@link String#valueOf(Object)} method.
 *
 * @param array
 *            the {@code Object} array to convert.
 * @return the {@code String} representation of {@code array}.
 * @since 1.5
 */
public static String deepToString(Object[] array) {
  // Special case null to prevent NPE
  if (array == null) {
    return "null";
  }
  // delegate this to the recursive method
  StringBuilder buf = new StringBuilder(array.length * 9);
  deepToStringImpl(array, new Object[] { array }, buf);
  return buf.toString();
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

newOrigArrays[origArrays.length] = newArray;
deepToStringImpl(newArray, newOrigArrays, sb);

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Creates a <i>"deep"</i> {@code String} representation of the
 * {@code Object[]} passed, such that if the array contains other arrays,
 * the {@code String} representation of those arrays is generated as well.
 * <p>
 * If any of the elements are primitive arrays, the generation is delegated
 * to the other {@code toString} methods in this class. If any element
 * contains a reference to the original array, then it will be represented
 * as {@code "[...]"}. If an element is an {@code Object[]}, then its
 * representation is generated by a recursive call to this method. All other
 * elements are converted via the {@link String#valueOf(Object)} method.
 *
 * @param array
 *            the {@code Object} array to convert.
 * @return the {@code String} representation of {@code array}.
 * @since 1.5
 */
public static String deepToString(Object[] array) {
  // Special case null to prevent NPE
  if (array == null) {
    return "null";
  }
  // delegate this to the recursive method
  StringBuilder buf = new StringBuilder(array.length * 9);
  deepToStringImpl(array, new Object[] { array }, buf);
  return buf.toString();
}

代码示例来源:origin: com.bugvm/bugvm-rt

newOrigArrays[origArrays.length] = newArray;
deepToStringImpl(newArray, newOrigArrays, sb);

代码示例来源:origin: ibinti/bugvm

/**
 * Creates a <i>"deep"</i> {@code String} representation of the
 * {@code Object[]} passed, such that if the array contains other arrays,
 * the {@code String} representation of those arrays is generated as well.
 * <p>
 * If any of the elements are primitive arrays, the generation is delegated
 * to the other {@code toString} methods in this class. If any element
 * contains a reference to the original array, then it will be represented
 * as {@code "[...]"}. If an element is an {@code Object[]}, then its
 * representation is generated by a recursive call to this method. All other
 * elements are converted via the {@link String#valueOf(Object)} method.
 *
 * @param array
 *            the {@code Object} array to convert.
 * @return the {@code String} representation of {@code array}.
 * @since 1.5
 */
public static String deepToString(Object[] array) {
  // Special case null to prevent NPE
  if (array == null) {
    return "null";
  }
  // delegate this to the recursive method
  StringBuilder buf = new StringBuilder(array.length * 9);
  deepToStringImpl(array, new Object[] { array }, buf);
  return buf.toString();
}

代码示例来源:origin: FlexoVM/flexovm

newOrigArrays[origArrays.length] = newArray;
deepToStringImpl(newArray, newOrigArrays, sb);

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Creates a <i>"deep"</i> {@code String} representation of the
 * {@code Object[]} passed, such that if the array contains other arrays,
 * the {@code String} representation of those arrays is generated as well.
 * <p>
 * If any of the elements are primitive arrays, the generation is delegated
 * to the other {@code toString} methods in this class. If any element
 * contains a reference to the original array, then it will be represented
 * as {@code "[...]"}. If an element is an {@code Object[]}, then its
 * representation is generated by a recursive call to this method. All other
 * elements are converted via the {@link String#valueOf(Object)} method.
 *
 * @param array
 *            the {@code Object} array to convert.
 * @return the {@code String} representation of {@code array}.
 * @since 1.5
 */
public static String deepToString(Object[] array) {
  // Special case null to prevent NPE
  if (array == null) {
    return "null";
  }
  // delegate this to the recursive method
  StringBuilder buf = new StringBuilder(array.length * 9);
  deepToStringImpl(array, new Object[] { array }, buf);
  return buf.toString();
}

代码示例来源:origin: com.gluonhq/robovm-rt

newOrigArrays[origArrays.length] = newArray;
deepToStringImpl(newArray, newOrigArrays, sb);

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * Creates a <i>"deep"</i> {@code String} representation of the
 * {@code Object[]} passed, such that if the array contains other arrays,
 * the {@code String} representation of those arrays is generated as well.
 * <p>
 * If any of the elements are primitive arrays, the generation is delegated
 * to the other {@code toString} methods in this class. If any element
 * contains a reference to the original array, then it will be represented
 * as {@code "[...]"}. If an element is an {@code Object[]}, then its
 * representation is generated by a recursive call to this method. All other
 * elements are converted via the {@link String#valueOf(Object)} method.
 *
 * @param array
 *            the {@code Object} array to convert.
 * @return the {@code String} representation of {@code array}.
 * @since 1.5
 */
public static String deepToString(Object[] array) {
  // Special case null to prevent NPE
  if (array == null) {
    return "null";
  }
  // delegate this to the recursive method
  StringBuilder buf = new StringBuilder(array.length * 9);
  deepToStringImpl(array, new Object[] { array }, buf);
  return buf.toString();
}

代码示例来源:origin: com.jtransc/jtransc-rt

newOrigArrays[origArrays.length] = newArray;
deepToStringImpl(newArray, newOrigArrays, sb);

代码示例来源:origin: FlexoVM/flexovm

/**
 * Creates a <i>"deep"</i> {@code String} representation of the
 * {@code Object[]} passed, such that if the array contains other arrays,
 * the {@code String} representation of those arrays is generated as well.
 * <p>
 * If any of the elements are primitive arrays, the generation is delegated
 * to the other {@code toString} methods in this class. If any element
 * contains a reference to the original array, then it will be represented
 * as {@code "[...]"}. If an element is an {@code Object[]}, then its
 * representation is generated by a recursive call to this method. All other
 * elements are converted via the {@link String#valueOf(Object)} method.
 *
 * @param array
 *            the {@code Object} array to convert.
 * @return the {@code String} representation of {@code array}.
 * @since 1.5
 */
public static String deepToString(Object[] array) {
  // Special case null to prevent NPE
  if (array == null) {
    return "null";
  }
  // delegate this to the recursive method
  StringBuilder buf = new StringBuilder(array.length * 9);
  deepToStringImpl(array, new Object[] { array }, buf);
  return buf.toString();
}

相关文章