cern.colt.Arrays类的使用及代码示例

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

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

Arrays介绍

[英]Array manipulations; complements java.util.Arrays.
[中]阵列操作;对java的补充。util。数组。

代码示例

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

@Override
public String toString() {
  return "{requirement=" + requirement + ", vars=" + Arrays.toString(varsToMaterialize.toArray())
      + "}";
}

代码示例来源: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

/**
 * Trims the capacity of the receiver to be the receiver's current 
 * size. Releases any superfluous internal memory. An application can use this operation to minimize the 
 * storage of the receiver.
 */
public void trimToSize() {
  elements = cern.colt.Arrays.trimToCapacity(elements,size());
}
}

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

/**
* Trims the capacity of the receiver to be the receiver's current 
* size. An application can use this operation to minimize the 
* storage of the receiver. 
*/
public void trimToSize() {
  elements = cern.colt.Arrays.trimToCapacity(elements,size());
}
}

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

@Override
public String toString() {
   return super.toString() + "{k=" + k + ", nyes=" + nyes
      + ", willCommit=" + willCommit + ", votes="
      + Arrays.toString(votes) + "}";
  
}

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

/**
 * Trims the capacity of the receiver to be the receiver's current 
 * size. Releases any superfluous internal memory. An application can use this operation to minimize the 
 * storage of the receiver.
 */
public void trimToSize() {
  elements = cern.colt.Arrays.trimToCapacity(elements,size());
}
}

代码示例来源: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/bigdata-core

@Override
public String toString() {
  return "{requirement=" + requirement + ", vars=" + Arrays.toString(varsToMaterialize.toArray())
      + "}";
}

代码示例来源:origin: org.nuiton.matrix/nuiton-matrix

/**
   * Trims the capacity of the receiver to be the receiver's current size.
   * Releases any superfluous internal memory. An application can use this
   * operation to minimize the storage of the receiver.
   */
  public void trimToSize() {
    elements = cern.colt.Arrays.trimToCapacity(elements, size());
  }
}

代码示例来源: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/bigdata-core

@Override
public String toString() {
   return super.toString() + "{k=" + k + ", nyes=" + nyes
      + ", willCommit=" + willCommit + ", votes="
      + Arrays.toString(votes) + "}";
  
}

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

/**
 * Trims the capacity of the receiver to be the receiver's current 
 * size. Releases any superfluous internal memory. An application can use this operation to minimize the 
 * storage of the receiver.
 */
public void trimToSize() {
  elements = cern.colt.Arrays.trimToCapacity(elements,size());
}
}

代码示例来源: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: blazegraph/database

/**
* Returns a string representation of the receiver, containing
* the String representation of each element.
*/
public String toString() {
  return cern.colt.Arrays.toString(partFromTo(0, size()-1).elements());
}
}

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

/**
 * Trims the capacity of the receiver to be the receiver's current 
 * size. Releases any superfluos internal memory. An application can use this operation to minimize the 
 * storage of the receiver.
 */
public void trimToSize() {
  elements = cern.colt.Arrays.trimToCapacity(elements,size());
}
}

代码示例来源: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

/**
   * Returns a string representation of the receiver, containing the String
   * representation of each element.
   */

  public String toString() {
    return cern.colt.Arrays.toString(partFromTo(0, size() - 1).elements());
  }
}

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

/**
 * Trims the capacity of the receiver to be the receiver's current 
 * size. Releases any superfluos internal memory. An application can use this operation to minimize the 
 * storage of the receiver.
 */
public void trimToSize() {
  elements = cern.colt.Arrays.trimToCapacity(elements,size());
}
}

代码示例来源: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

/**
   * Returns a string representation of the receiver, containing the String
   * representation of each element.
   */

  public String toString() {
    return cern.colt.Arrays.toString(partFromTo(0, size() - 1).elements());
  }
}

相关文章