cern.colt.Arrays.ensureCapacity()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(8.3k)|赞(0)|评价(0)|浏览(138)

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

Arrays.ensureCapacity介绍

[英]Ensures that a given array can hold up to minCapacity elements. Returns the identical array if it can hold at least the number of elements specified. Otherwise, returns a new array with increased capacity containing the same elements, ensuring that it can hold at least the number of elements specified by the minimum capacity argument.
[中]确保给定数组最多可以容纳最小容量的元素。如果数组至少可以容纳指定的元素数,则返回相同的数组。否则,返回一个容量增加的新数组,该数组包含相同的元素,确保它至少可以容纳最小容量参数指定的元素数。

代码示例

代码示例来源:origin: blazegraph/database

/**
 * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory.
 * If necessary, allocates new internal memory and increases the capacity of the receiver.
 *
 * @param   minCapacity   the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity);
}
/**

代码示例来源:origin: net.sourceforge.parallelcolt/parallelcolt

/**
 * Ensures that the receiver can hold at least the specified number of
 * elements without needing to allocate new internal memory. If necessary,
 * allocates new internal memory and increases the capacity of the receiver.
 * 
 * @param minCapacity
 *            the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements, minCapacity);
}

代码示例来源:origin: rwl/ParallelColt

/**
 * Ensures that the receiver can hold at least the specified number of
 * elements without needing to allocate new internal memory. If necessary,
 * allocates new internal memory and increases the capacity of the receiver.
 * 
 * @param minCapacity
 *            the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements, minCapacity);
}

代码示例来源:origin: blazegraph/database

/**
 * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory.
 * If necessary, allocates new internal memory and increases the capacity of the receiver.
 *
 * @param   minCapacity   the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity);
}
/**

代码示例来源:origin: blazegraph/database

/**
 * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory.
 * If necessary, allocates new internal memory and increases the capacity of the receiver.
 *
 * @param   minCapacity   the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity);
}
/**

代码示例来源:origin: blazegraph/database

/**
 * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory.
 * If necessary, allocates new internal memory and increases the capacity of the receiver.
 *
 * @param   minCapacity   the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity);
}
/**

代码示例来源:origin: blazegraph/database

/**
 * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory.
 * If necessary, allocates new internal memory and increases the capacity of the receiver.
 *
 * @param   minCapacity   the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity);
}
/**

代码示例来源:origin: blazegraph/database

/**
 * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory.
 * If necessary, allocates new internal memory and increases the capacity of the receiver.
 *
 * @param   minCapacity   the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity);
}
/**

代码示例来源:origin: blazegraph/database

/**
 * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory.
 * If necessary, allocates new internal memory and increases the capacity of the receiver.
 *
 * @param   minCapacity   the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity);
}
/**

代码示例来源:origin: net.sourceforge.parallelcolt/parallelcolt

/**
 * Ensures that the receiver can hold at least the specified number of
 * elements without needing to allocate new internal memory. If necessary,
 * allocates new internal memory and increases the capacity of the receiver.
 * 
 * @param minCapacity
 *            the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements, minCapacity);
}

代码示例来源:origin: net.sourceforge.parallelcolt/parallelcolt

/**
 * Ensures that the receiver can hold at least the specified number of
 * elements without needing to allocate new internal memory. If necessary,
 * allocates new internal memory and increases the capacity of the receiver.
 * 
 * @param minCapacity
 *            the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements, minCapacity);
}

代码示例来源:origin: net.sourceforge.parallelcolt/parallelcolt

/**
 * Ensures that the receiver can hold at least the specified number of
 * elements without needing to allocate new internal memory. If necessary,
 * allocates new internal memory and increases the capacity of the receiver.
 * 
 * @param minCapacity
 *            the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements, minCapacity);
}

代码示例来源:origin: com.blazegraph/colt

/**
 * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory.
 * If necessary, allocates new internal memory and increases the capacity of the receiver.
 *
 * @param   minCapacity   the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity);
}
/**

代码示例来源:origin: com.blazegraph/colt

/**
 * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory.
 * If necessary, allocates new internal memory and increases the capacity of the receiver.
 *
 * @param   minCapacity   the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity);
}
/**

代码示例来源:origin: net.sourceforge.parallelcolt/parallelcolt

/**
 * Ensures that the receiver can hold at least the specified number of
 * elements without needing to allocate new internal memory. If necessary,
 * allocates new internal memory and increases the capacity of the receiver.
 * 
 * @param minCapacity
 *            the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements, minCapacity);
}

代码示例来源:origin: net.sourceforge.parallelcolt/parallelcolt

/**
 * Ensures that the receiver can hold at least the specified number of
 * elements without needing to allocate new internal memory. If necessary,
 * allocates new internal memory and increases the capacity of the receiver.
 * 
 * @param minCapacity
 *            the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements, minCapacity);
}

代码示例来源:origin: com.blazegraph/colt

/**
 * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory.
 * If necessary, allocates new internal memory and increases the capacity of the receiver.
 *
 * @param   minCapacity   the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity);
}
/**

代码示例来源:origin: com.blazegraph/colt

/**
 * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory.
 * If necessary, allocates new internal memory and increases the capacity of the receiver.
 *
 * @param   minCapacity   the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity);
}
/**

代码示例来源:origin: com.blazegraph/colt

/**
 * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory.
 * If necessary, allocates new internal memory and increases the capacity of the receiver.
 *
 * @param   minCapacity   the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity);
}
/**

代码示例来源:origin: com.blazegraph/colt

/**
 * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory.
 * If necessary, allocates new internal memory and increases the capacity of the receiver.
 *
 * @param   minCapacity   the desired minimum capacity.
 */
public void ensureCapacity(int minCapacity) {
  elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity);
}
/**

相关文章