本文整理了Java中java.util.Arrays.copyOf()
方法的一些代码示例,展示了Arrays.copyOf()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Arrays.copyOf()
方法的具体详情如下:
包路径:java.util.Arrays
类名称:Arrays
方法名:copyOf
[英]Copies newLength elements from original into a new array. If newLength is greater than original.length, the result is padded with the value (byte) 0.
[中]将newLength元素从原始数组复制到新数组中。如果newLength大于原始长度。长度,结果用值(字节)0填充。
代码示例来源:origin: apache/zeppelin
public invokeMethod_result setSuccess(byte[] success) {
this.success = success == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(success, success.length));
return this;
}
代码示例来源:origin: apache/zeppelin
public resourceGet_result setSuccess(byte[] success) {
this.success = success == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(success, success.length));
return this;
}
代码示例来源:origin: apache/zeppelin
public getResource_result setSuccess(byte[] success) {
this.success = success == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(success, success.length));
return this;
}
代码示例来源:origin: apache/zeppelin
public resourceInvokeMethod_result setSuccess(byte[] success) {
this.success = success == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(success, success.length));
return this;
}
代码示例来源:origin: alibaba/jstorm
public void set_bits(byte[] bits) {
this.bits = bits == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(bits, bits.length));
}
代码示例来源:origin: alibaba/jstorm
public void set_points(byte[] points) {
this.points = points == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(points, points.length));
}
代码示例来源:origin: apache/hive
public void setExpr(byte[] expr) {
this.expr = expr == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(expr, expr.length));
}
代码示例来源:origin: apache/hive
public void setGuid(byte[] guid) {
this.guid = guid == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(guid, guid.length));
}
代码示例来源:origin: apache/hive
public void setAbortedBits(byte[] abortedBits) {
this.abortedBits = abortedBits == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(abortedBits, abortedBits.length));
}
代码示例来源:origin: apache/hive
public void setPayload(byte[] payload) {
this.payload = payload == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(payload, payload.length));
}
代码示例来源:origin: apache/hive
public void setBitVectors(byte[] bitVectors) {
this.bitVectors = bitVectors == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(bitVectors, bitVectors.length));
}
代码示例来源:origin: apache/hive
public void setExpr(byte[] expr) {
this.expr = expr == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(expr, expr.length));
}
代码示例来源:origin: apache/hive
public void setAbortedBits(byte[] abortedBits) {
this.abortedBits = abortedBits == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(abortedBits, abortedBits.length));
}
代码示例来源:origin: apache/hive
public void setExpr(byte[] expr) {
this.expr = expr == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(expr, expr.length));
}
代码示例来源:origin: apache/hive
public void setBitVectors(byte[] bitVectors) {
this.bitVectors = bitVectors == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(bitVectors, bitVectors.length));
}
代码示例来源:origin: apache/hive
public void setNulls(byte[] nulls) {
this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length));
}
代码示例来源:origin: apache/hive
public void setBitVectors(byte[] bitVectors) {
this.bitVectors = bitVectors == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(bitVectors, bitVectors.length));
}
代码示例来源:origin: apache/hive
public void setNulls(byte[] nulls) {
this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length));
}
代码示例来源:origin: apache/hive
public void setNulls(byte[] nulls) {
this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length));
}
代码示例来源:origin: apache/hive
public void setBinaryColumns(byte[] binaryColumns) {
this.binaryColumns = binaryColumns == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(binaryColumns, binaryColumns.length));
}
内容来源于网络,如有侵权,请联系作者删除!