Java Code Examples for org.apache.commons.lang.ArrayUtils.clone()

The following are Jave code examples for showing how to use clone() of the org.apache.commons.lang.ArrayUtils class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: sonar-quality-gates-plugin   File: QualityGateTaskCE.java   View Source Code Vote up 4 votes
public QualityGateTask[] getQueue() {
    return (QualityGateTask[]) ArrayUtils.clone(queue);
}
 
Example 2
Project: sonar-quality-gates-plugin   File: QualityGateTaskCE.java   View Source Code Vote up 4 votes
public void setQueue(QualityGateTask[] queue) {
    this.queue = (QualityGateTask[]) ArrayUtils.clone(queue);
}
 
Example 3
Project: hadoop   File: EnumCounters.java   View Source Code Vote up 4 votes
/** @return the values of counter as a shadow copy of array*/
public long[] asArray() {
  return ArrayUtils.clone(counters);
}