本文整理了Java中cern.colt.Arrays
类的一些代码示例,展示了Arrays
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Arrays
类的具体详情如下:
包路径:cern.colt.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());
}
}
内容来源于网络,如有侵权,请联系作者删除!