gpt4 book ai didi

org.geotools.resources.XArray.doInsert()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-25 23:55:05 26 4
gpt4 key购买 nike

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

XArray.doInsert介绍

[英]Inserts spaces into the middle of a table. These "spaces" will be made up of null elements.
[中]在表格中间插入空格。这些“空格”将由空元素组成。

代码示例

代码示例来源:origin: org.geotools/gt-metadata

/**
 * Inserts spaces into the middle of an array. These "spaces" will be made up of elements
 * initialized to zeros.
 *
 * @param array   Array in which to insert spaces.
 * @param index   Index where the first space should be inserted. All {@code array} elements
 *                having an index equal to or higher than {@code index} will be moved forward.
 * @param length  Number of spaces to insert.
 * @return        Array containing the {@code array} elements with the additional space
 *                inserted, or {@code array} if {@code length} is 0.
 */
public static int[] insert(final int[] array, final int index, final int length) {
  return doInsert(array, index, length);
}

代码示例来源:origin: org.geotools/gt-metadata

/**
 * Inserts spaces into the middle of an array. These "spaces" will be made up of elements
 * initialized to {@code false}.
 *
 * @param array   Array in which to insert spaces.
 * @param index   Index where the first space should be inserted. All {@code array} elements
 *                having an index equal to or higher than {@code index} will be moved forward.
 * @param length  Number of spaces to insert.
 * @return        Array containing the {@code array} elements with the additional space
 *                inserted, or {@code array} if {@code length} is 0.
 */
public static boolean[] insert(final boolean[] array, final int index, final int length) {
  return doInsert(array, index, length);
}

代码示例来源:origin: org.geotools/gt-metadata

/**
 * Inserts spaces into the middle of an array. These "spaces" will be made up of elements
 * initialized to zeros.
 *
 * @param array   Array in which to insert spaces.
 * @param index   Index where the first space should be inserted. All {@code array} elements
 *                having an index equal to or higher than {@code index} will be moved forward.
 * @param length  Number of spaces to insert.
 * @return        Array containing the {@code array} elements with the additional space
 *                inserted, or {@code array} if {@code length} is 0.
 */
public static byte[] insert(final byte[] array, final int index, final int length) {
  return doInsert(array, index, length);
}

代码示例来源:origin: org.geotools/gt-metadata

/**
 * Inserts spaces into the middle of an array. These "spaces" will be made up of elements
 * initialized to {@code null}.
 *
 * @param array   Array in which to insert spaces.
 * @param index   Index where the first space should be inserted. All {@code array} elements
 *                having an index equal to or higher than {@code index} will be moved forward.
 * @param length  Number of spaces to insert.
 * @return        Array containing the {@code array} elements with the additional space
 *                inserted, or {@code array} if {@code length} is 0.
 */
public static <E> E[] insert(final E[] array, final int index, final int length) {
  return doInsert(array, index, length);
}

代码示例来源:origin: org.geotools/gt-metadata

/**
 * Inserts spaces into the middle of an array. These "spaces" will be made up of elements
 * initialized to zeros.
 *
 * @param array   Array in which to insert spaces.
 * @param index   Index where the first space should be inserted. All {@code array} elements
 *                having an index equal to or higher than {@code index} will be moved forward.
 * @param length  Number of spaces to insert.
 * @return        Array containing the {@code array} elements with the additional space
 *                inserted, or {@code array} if {@code length} is 0.
 */
public static double[] insert(final double[] array, final int index, final int length) {
  return doInsert(array, index, length);
}

代码示例来源:origin: org.geotools/gt-metadata

/**
 * Inserts spaces into the middle of an array. These "spaces" will be made up of elements
 * initialized to zeros.
 *
 * @param array   Array in which to insert spaces.
 * @param index   Index where the first space should be inserted. All {@code array} elements
 *                having an index equal to or higher than {@code index} will be moved forward.
 * @param length  Number of spaces to insert.
 * @return        Array containing the {@code array} elements with the additional space
 *                inserted, or {@code array} if {@code length} is 0.
 */
public static float[] insert(final float[] array, final int index, final int length) {
  return doInsert(array, index, length);
}

代码示例来源:origin: org.geotools/gt-metadata

/**
 * Inserts spaces into the middle of an array. These "spaces" will be made up of elements
 * initialized to zeros.
 *
 * @param array   Array in which to insert spaces.
 * @param index   Index where the first space should be inserted. All {@code array} elements
 *                having an index equal to or higher than {@code index} will be moved forward.
 * @param length  Number of spaces to insert.
 * @return        Array containing the {@code array} elements with the additional space
 *                inserted, or {@code array} if {@code length} is 0.
 */
public static long[] insert(final long[] array, final int index, final int length) {
  return doInsert(array, index, length);
}

代码示例来源:origin: org.geotools/gt-metadata

/**
 * Inserts spaces into the middle of an array. These "spaces" will be made up of elements
 * initialized to zeros.
 *
 * @param array   Array in which to insert spaces.
 * @param index   Index where the first space should be inserted. All {@code array} elements
 *                having an index equal to or higher than {@code index} will be moved forward.
 * @param length  Number of spaces to insert.
 * @return        Array containing the {@code array} elements with the additional space
 *                inserted, or {@code array} if {@code length} is 0.
 */
public static short[] insert(final short[] array, final int index, final int length) {
  return doInsert(array, index, length);
}

代码示例来源:origin: org.geotools/gt-metadata

/**
 * Inserts spaces into the middle of an array. These "spaces" will be made up of elements
 * initialized to zeros.
 *
 * @param array   Array in which to insert spaces.
 * @param index   Index where the first space should be inserted. All {@code array} elements
 *                having an index equal to or higher than {@code index} will be moved forward.
 * @param length  Number of spaces to insert.
 * @return        Array containing the {@code array} elements with the additional space
 *                inserted, or {@code array} if {@code length} is 0.
 */
public static char[] insert(final char[] array, final int index, final int length) {
  return doInsert(array, index, length);
}

代码示例来源:origin: org.geotools/gt2-metadata

/**
 * Inserts spaces into the middle of a table.  These "spaces" will be made
 * up of {@code false}.
 *
 * @param array   Table in which to insert spaces.
 * @param index   {@code array} index where spaces should be inserted.
 *                All {@code array} elements which have an index equal
 *                to or higher than {@code index} will be moved
 *                forward.
 * @param length  Number of spaces to insert.
 * @return        Table which contains the {@code array} data with the
 *                additional space. This method can directly return
 *                {@code dst}, but most often it returns a newly
 *                created table.
 */
public static boolean[] insert(final boolean[] array, final int index, final int length) {
  return (boolean[]) doInsert(array, index, length);
}

代码示例来源:origin: org.geotools/gt2-metadata

/**
 * Inserts spaces into the middle of a table.  These "spaces" will be made
 * up of zeros.
 *
 * @param array   Table in which to insert spaces.
 * @param index   {@code array} index where spaces should be inserted.
 *                All {@code array} elements which have an index equal
 *                to or higher than {@code index} will be moved
 *                forward.
 * @param length  Number of spaces to insert.
 * @return        Table which contains the {@code array} data with the
 *                additional space. This method can directly return
 *                {@code dst}, but most often it returns a newly
 *                created table.
 */
public static float[] insert(final float[] array, final int index, final int length) {
  return (float[]) doInsert(array, index, length);
}

代码示例来源:origin: org.geotools/gt2-metadata

/**
 * Inserts spaces into the middle of a table.  These "spaces" will be made
 * up of zeros.
 *
 * @param array   Table in which to insert spaces.
 * @param index   {@code array} index where spaces should be inserted.
 *                All {@code array} elements which have an index equal
 *                to or higher than {@code index} will be moved
 *                forward.
 * @param length  Number of spaces to insert.
 * @return        Table which contains the {@code array} data with the
 *                additional space. This method can directly return
 *                {@code dst}, but most often it returns a newly
 *                created table.
 */
public static byte[] insert(final byte[] array, final int index, final int length) {
  return (byte[]) doInsert(array, index, length);
}

代码示例来源:origin: org.geotools/gt2-metadata

/**
 * Inserts spaces into the middle of a table.  These "spaces" will be made
 * up of null elements.
 *
 * @param array   Table in which to insert spaces.
 * @param index   {@code array} index where spaces should be inserted.
 *                All {@code array} elements which have an index equal
 *                to or higher than {@code index} will be moved
 *                forward.
 * @param length  Number of spaces to insert.
 * @return        Table which contains the {@code array} data with the
 *                additional space. This method can directly return
 *                {@code dst}, but most often it returns a newly
 *                created table.
 */
public static Object[] insert(final Object[] array, final int index, final int length) {
  return (Object[]) doInsert(array, index, length);
}

代码示例来源:origin: org.geotools/gt2-metadata

/**
 * Inserts spaces into the middle of a table.  These "spaces" will be made
 * up of zeros.
 *
 * @param array   Table in which to insert spaces.
 * @param index   {@code array} index where spaces should be inserted.
 *                All {@code array} elements which have an index equal
 *                to or higher than {@code index} will be moved
 *                forward.
 * @param length  Number of spaces to insert.
 * @return        Table which contains the {@code array} data with the
 *                additional space. This method can directly return
 *                {@code dst}, but most often it returns a newly
 *                created table.
 */
public static long[] insert(final long[] array, final int index, final int length) {
  return (long[]) doInsert(array, index, length);
}

代码示例来源:origin: org.geotools/gt2-metadata

/**
 * Inserts spaces into the middle of a table.  These "spaces" will be made
 * up of zeros.
 *
 * @param array   Table in which to insert spaces.
 * @param index   {@code array} index where spaces should be inserted.
 *                All {@code array} elements which have an index equal
 *                to or higher than {@code index} will be moved
 *                forward.
 * @param length  Number of spaces to insert.
 * @return        Table which contains the {@code array} data with the
 *                additional space. This method can directly return
 *                {@code dst}, but most often it returns a newly
 *                created table.
 */
public static double[] insert(final double[] array, final int index, final int length) {
  return (double[]) doInsert(array, index, length);
}

代码示例来源:origin: org.geotools/gt2-metadata

/**
 * Inserts spaces into the middle of a table.  These "spaces" will be made
 * up of zeros.
 *
 * @param array   Table in which to insert spaces.
 * @param index   {@code array} index where spaces should be inserted.
 *                All {@code array} elements which have an index equal
 *                to or higher than {@code index} will be moved
 *                forward.
 * @param length  Number of spaces to insert.
 * @return        Table which contains the {@code array} data with the
 *                additional space. This method can directly return
 *                {@code dst}, but most often it returns a newly
 *                created table.
 */
public static char[] insert(final char[] array, final int index, final int length) {
  return (char[]) doInsert(array, index, length);
}

代码示例来源:origin: org.geotools/gt-metadata

/**
 * Inserts a table slice into another table.  The {@code src} table
 * will be entirely or partially inserted into the {@code dst} table.
 *
 * @param src     Tablea to insert into {@code dst}.
 * @param src_pos Index of the first data item of {@code src} to insert into {@code dst}.
 * @param dst     Table in which to insert {@code src} data.
 * @param dst_pos {@code dst} index in which to insert {@code src} data. All elements of
 *                {@code dst} whose index is equal to or greater than {@code dst_pos} will
 *                be moved forward.
 * @param length  Number of {@code src} data items to insert.
 * @return        Table which contains the combination of {@code src} and {@code dst}. This
 *                method can directly return {@code dst}, but never {@code src}. It most
 *                often returns a newly created table.
 */
public static short[] insert(final short[] src, final int src_pos,
               final short[] dst, final int dst_pos, final int length)
{
  // Following cast is required for Java 5 (remove with Java 6).
  return (short[]) doInsert(src, src_pos, dst, dst_pos, length);
}

代码示例来源:origin: org.geotools/gt2-metadata

/**
 * Inserts spaces into the middle of a table.  These "spaces" will be made
 * up of zeros.
 *
 * @param array   Table in which to insert spaces.
 * @param index   {@code array} index where spaces should be inserted.
 *                All {@code array} elements which have an index equal
 *                to or higher than {@code index} will be moved
 *                forward.
 * @param length  Number of spaces to insert.
 * @return        Table which contains the {@code array} data with the
 *                additional space. This method can directly return
 *                {@code dst}, but most often it returns a newly
 *                created table.
 */
public static int[] insert(final int[] array, final int index, final int length) {
  return (int[]) doInsert(array, index, length);
}

代码示例来源:origin: org.geotools/gt2-metadata

/**
 * Inserts spaces into the middle of a table.  These "spaces" will be made
 * up of zeros.
 *
 * @param array   Table in which to insert spaces.
 * @param index   {@code array} index where spaces should be inserted.
 *                All {@code array} elements which have an index equal
 *                to or higher than {@code index} will be moved
 *                forward.
 * @param length  Number of spaces to insert.
 * @return        Table which contains the {@code array} data with the
 *                additional space. This method can directly return
 *                {@code dst}, but most often it returns a newly
 *                created table.
 */
public static short[] insert(final short[] array, final int index, final int length) {
  return (short[]) doInsert(array, index, length);
}

代码示例来源:origin: org.geotools/gt-metadata

/**
 * Inserts a table slice into another table.  The {@code src} table
 * will be entirely or partially inserted into the {@code dst} table.
 *
 * @param src     Tablea to insert into {@code dst}.
 * @param src_pos Index of the first data item of {@code src} to
 *                insert into {@code dst}.
 * @param dst     Table in which to insert {@code src} data.
 * @param dst_pos {@code dst} index in which to insert {@code src} data. All elements of
 *                {@code dst} whose index is equal to or greater than {@code dst_pos} will
 *                be moved forward.
 * @param length  Number of {@code src} data items to insert.
 * @return        Table which contains the combination of {@code src} and {@code dst}. This
 *                method can directly return {@code dst}, but never {@code src}. It most
 *                often returns a newly created table.
 */
public static byte[] insert(final byte[] src, final int src_pos,
              final byte[] dst, final int dst_pos, final int length)
{
  // Following cast is required for Java 5 (remove with Java 6).
  return (byte[]) doInsert(src, src_pos, dst, dst_pos, length);
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com