本文整理了Java中java.util.ArrayDeque.clone()
方法的一些代码示例,展示了ArrayDeque.clone()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ArrayDeque.clone()
方法的具体详情如下:
包路径:java.util.ArrayDeque
类名称:ArrayDeque
方法名:clone
[英]Returns a copy of this deque.
[中]返回此文件的副本。
代码示例来源:origin: com.redhat.lightblue/util
private Error(ArrayDeque<String> context, String errorCode, String msg) {
this.context = (ArrayDeque<String>) context.clone();
this.errorCode = errorCode;
this.msg = msg;
}
代码示例来源:origin: kompics/kompics
@Override
public Object clone() throws CloneNotSupportedException {
Response response = (Response) super.clone();
response.requestPath = requestPath.clone();
return response;
}
}
代码示例来源:origin: org.kie.server/kie-server-client
@Override
public List<String> getAvailableEndpoints() {
return new ArrayList<String>(availableEndpoints.clone());
}
代码示例来源:origin: kompics/kompics
@Override
public Object clone() throws CloneNotSupportedException {
Request request = (Request) super.clone();
request.requestPath = requestPath.clone();
return request;
}
}
代码示例来源:origin: io.permazen/permazen-main
private Cursor(ArrayList<Integer> referenceFields, ArrayList<Class<?>> pathTypes, JClass<?> jclass,
JField jfield, ArrayDeque<String> fieldNames, boolean reverseStep) {
assert pathTypes.size() == referenceFields.size() + 1;
this.referenceFields.addAll(referenceFields);
this.pathTypes.addAll(pathTypes);
this.jclass = jclass;
this.jfield = jfield;
this.fieldNames = fieldNames.clone();
this.reverseStep = reverseStep;
}
代码示例来源:origin: org.jsimpledb/jsimpledb-main
private Cursor(ArrayList<Integer> referenceFields, ArrayList<Class<?>> pathTypes, JClass<?> jclass,
JField jfield, ArrayDeque<String> fieldNames, boolean reverseStep) {
assert pathTypes.size() == referenceFields.size() + 1;
this.referenceFields.addAll(referenceFields);
this.pathTypes.addAll(pathTypes);
this.jclass = jclass;
this.jfield = jfield;
this.fieldNames = fieldNames.clone();
this.reverseStep = reverseStep;
}
代码示例来源:origin: com.redhat.lightblue/lightblue-core-util
private Error(ArrayDeque<String> context, String errorCode, String msg) {
this.context = context.clone();
this.errorCode = errorCode;
this.msg = msg;
LOGGER.error(this.toString());
}
代码示例来源:origin: lightblue-platform/lightblue-core
private Error(ArrayDeque<String> context, String errorCode, String msg) {
this.context = context.clone();
this.errorCode = errorCode;
this.msg = msg;
LOGGER.error(this.toString());
}
代码示例来源:origin: stackoverflow.com
ArrayDeque<String> cur = curStack.get ();
if ( ascending.get () ) {
ArrayDeque<String> clon = cur.clone ();
stacks.put ( hash ( clon ), clon );
代码示例来源:origin: com.orientechnologies/orientdb-core
public Object getVariable(final String iName) {
final String name = iName.trim().toUpperCase(Locale.ENGLISH);
if ("DEPTH".startsWith(name))
return getDepth();
else if (name.startsWith("PATH"))
return ODocumentHelper.getFieldValue(getPath(), iName.substring("PATH".length()));
else if (name.startsWith("STACK")) {
Object result = ODocumentHelper.getFieldValue(memory.getUnderlying(), iName.substring("STACK".length()));
if (result instanceof ArrayDeque) {
result = ((ArrayDeque) result).clone();
}
return result;
} else if (name.startsWith("HISTORY"))
return ODocumentHelper.getFieldValue(history, iName.substring("HISTORY".length()));
else
// DELEGATE
return super.getVariable(iName);
}
代码示例来源:origin: org.jsimpledb/jsimpledb-main
final ArrayDeque<String> remainingFieldNames = this.fieldNames.clone();
final String step = remainingFieldNames.peekFirst();
代码示例来源:origin: io.permazen/permazen-main
final ArrayDeque<String> remainingFieldNames = this.fieldNames.clone();
final String step = remainingFieldNames.peekFirst();
代码示例来源:origin: org.vesalainen.parsers/sql
return new OptRes(stack.clone(), cum);
内容来源于网络,如有侵权,请联系作者删除!