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

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

Introduction

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

Prototype

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

Source Link

Document

Clones an array returning a typecast result and handling null.

Usage

From source file:de.csdev.ebus.command.datatypes.ext.EBusTypeDateTime.java

@Override
protected byte[] applyByteOrder(byte[] data) {
    if (reverseByteOrder) {
        logger.warn("Parameter 'reverseByteOrder' not supported for EBusTypeDateTime yet!");
    }//  ww w  .j a  v  a2 s. co m
    return ArrayUtils.clone(data);
}

From source file:com.jaeksoft.searchlib.result.collector.docsethit.ScoreBufferCollector.java

protected ScoreBufferCollector(final DocSetHitBaseCollector base, final ScoreBufferCollector src) {
    super(base);//from w w  w . j a v a 2 s .  co  m
    scoreCollector = null;
    scores = src.scores == null ? null : ArrayUtils.clone(src.scores);
    maxScore = src.maxScore;
}

From source file:com.jaeksoft.searchlib.result.collector.docsethit.DocIdBufferCollector.java

private DocIdBufferCollector(final DocSetHitBaseCollector base, final DocIdBufferCollector source) {
    super(base);/*  ww w  .  j  a  v a 2s  . c  o m*/
    this.idsBuffer = null;
    this.ids = ArrayUtils.clone(source.ids);
    this.bitSet = (OpenBitSet) source.bitSet.clone();
}

From source file:com.tbb.logging.LoggingBean.java

public String[] getArgs() {
    return (String[]) ArrayUtils.clone(args);
}

From source file:com.tbb.logging.LoggingBean.java

public void setArgs(String[] args) {
    this.args = (String[]) ArrayUtils.clone(args);
}

From source file:com.jaeksoft.searchlib.result.collector.collapsing.CollapseScoreDocCollector.java

private CollapseScoreDocCollector(final CollapseBaseCollector base, final CollapseScoreDocCollector src) {
    super(base);/*from  www  .  ja va  2 s.  co  m*/
    this.sourceScores = null;
    this.scoreCollector = null;
    this.maxScore = src.maxScore;
    this.scores = ArrayUtils.clone(src.scores);
    this.currentPos = src.currentPos;

}

From source file:com.onehippo.gogreen.jaxrs.model.ProductRepresentation.java

public ProductRepresentation represent(Product bean) throws RepositoryException {
    super.represent(bean);

    //Its WRONG that there is jcr code here
    this.productLink = this.requestContext.getHstLinkCreator()
            .create(bean.getNode(), this.requestContext, ContainerConstants.MOUNT_ALIAS_SITE)
            .toUrlForm(this.requestContext, true);

    this.price = bean.getPrice();
    this.rating = bean.getRating();
    this.votes = bean.getVotes();
    this.categories = (String[]) ArrayUtils.clone(bean.getCategories());
    this.image = buildImageLinkUrl(bean);
    this.images = buildImageGalleryLinks(bean);
    this.smallThumbnail = buildImageLinkUrl(bean, "hippogogreengallery:smallthumbnail");

    return this;
}

From source file:gov.nih.nci.caarray.application.project.InconsistentProjectStateException.java

/**
 * @return the arguments, interpreted depending on the reason.
 */
public Object[] getArguments() {
    return ArrayUtils.clone(arguments);
}

From source file:com.jaeksoft.searchlib.result.collector.collapsing.CollapseDistanceCollector.java

private CollapseDistanceCollector(final CollapseBaseCollector base, CollapseDistanceCollector src) {
    super(base);//from   w  w  w  .  j  a  v a 2s  . c  om
    this.sourceDistances = null;
    this.distanceCollector = null;

    this.distances = ArrayUtils.clone(src.distances);
    this.maxDistance = src.maxDistance;
    this.minDistance = src.minDistance;
    this.currentPos = src.currentPos;

    this.collapsedDistances = new float[src.collapsedDistances.length][];
    int i = 0;
    for (float[] collDistanceArray : src.collapsedDistances)
        this.collapsedDistances[i++] = ArrayUtils.clone(collDistanceArray);
}

From source file:mitm.common.security.crypto.PBDecryptionInputStream.java

public PBDecryptionInputStream(InputStream delegate, char[] password) {
    Check.notNull(delegate, "delegate");

    this.delegate = delegate;
    this.password = ArrayUtils.clone(password);
}