Example usage for org.apache.commons.lang3 ArrayUtils clone

List of usage examples for org.apache.commons.lang3 ArrayUtils clone

Introduction

In this page you can find the example usage for org.apache.commons.lang3 ArrayUtils clone.

Prototype

public static boolean[] clone(final boolean[] array) 

Source Link

Document

Clones an array returning a typecast result and handling null .

This method returns null for a null input array.

Usage

From source file:gov.nih.nci.caintegrator.application.arraydata.PlatformDataTypeEnum.java

/**
 * The enabled platform data types.//from   ww w  . ja v  a 2 s.co m
 * @return the platform data types that are available to the user for usage.
 */
public static PlatformDataTypeEnum[] enabledValues() {
    return ArrayUtils.clone(ENABLED_VALUES);
}

From source file:com.mcleodmoores.mvn.natives.DynamicLib.java

/**
 * Returns the header files related to the dynamic library.
 * 
 * @return sources of header files
 */
public HeaderFile[] getHeaders() {
    return ArrayUtils.clone(_headers);
}

From source file:gov.nih.nci.caintegrator.application.arraydata.PlatformTypeEnum.java

/**
 * The enabled platforms.//from   w ww.j  a v  a2  s  .com
 * @return the platforms that are available to the user for usage.
 */
public static PlatformTypeEnum[] enabledPlatforms() {
    return ArrayUtils.clone(ENABLED_VALUES);
}

From source file:de.blizzy.documentr.page.PageData.java

public PageData(byte[] data, String contentType) {
    this.data = ArrayUtils.clone(data);
    this.contentType = contentType;
}

From source file:com.mcleodmoores.mvn.natives.DynamicLib.java

/**
 * Sets the header files related to the dynamic library.
 * //from www. j  av a 2  s  .c o  m
 * @param headers
 *          sources of header files
 */
public void setHeaders(final HeaderFile[] headers) {
    _headers = ArrayUtils.clone(headers);
}

From source file:com.mcleodmoores.mvn.natives.PackageDynamicMojo.java

public Source[] getSources() {
    return ArrayUtils.clone(_sources);
}

From source file:de.blizzy.documentr.page.PageData.java

public byte[] getData() {
    return ArrayUtils.clone(data);
}

From source file:com.mcleodmoores.mvn.natives.PackageDynamicMojo.java

public void setSources(final Source[] sources) {
    _sources = ArrayUtils.clone(sources);
}

From source file:com.codebutler.farebot.card.desfire.files.ValueDesfireFile.java

ValueDesfireFile(int fileId, DesfireFileSettings fileSettings, byte[] fileData) {
    super(fileId, fileSettings, fileData);

    byte[] myData = ArrayUtils.clone(fileData);
    ArrayUtils.reverse(myData);/*from ww  w.  j  a  v a 2  s  . c  om*/
    mValue = Utils.byteArrayToInt(myData);

}

From source file:fr.openwide.core.commons.util.CloneUtils.java

/**
 * Clne un tableau d'objets/* ww  w.  j  a  v  a2s  . c  o m*/
 * 
 * @param <T> classe des objets stocks dans le tableau
 * @param array tableau
 * @return clne du tableau
 */
public static <T extends Object> T[] clone(T[] array) {
    return ArrayUtils.clone(array);
}