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:org.dspace.app.webui.jsptag.CollectionListTag.java

/**
 * Set the collections to list/*  w ww .  j  a v  a 2s  .  c  om*/
 * 
 * @param collectionsIn
 *            the collections
 */
public void setCollections(Collection[] collectionsIn) {
    collections = (Collection[]) ArrayUtils.clone(collectionsIn);
}

From source file:org.dspace.app.webui.jsptag.CommunityListTag.java

/**
 * Get the communities to list
 * 
 * @return the communities
 */
public Community[] getCommunities() {
    return (Community[]) ArrayUtils.clone(communities);
}

From source file:org.dspace.app.webui.jsptag.CommunityListTag.java

/**
 * Set the communities to list/*  ww w.  j a v  a  2  s .  c  o m*/
 * 
 * @param communitiesIn
 *            the communities
 */
public void setCommunities(Community[] communitiesIn) {
    communities = (Community[]) ArrayUtils.clone(communitiesIn);
}

From source file:org.dspace.app.webui.jsptag.ItemListTag.java

/**
 * Get the items to list
 *
 * @return the items
 */
public Item[] getItems() {
    return (Item[]) ArrayUtils.clone(items);
}

From source file:org.dspace.app.webui.jsptag.ItemListTag.java

/**
 * Set the items to list
 *
 * @param itemsIn
 *            the items
 */
public void setItems(Item[] itemsIn) {
    items = (Item[]) ArrayUtils.clone(itemsIn);
}

From source file:org.dspace.app.webui.jsptag.SelectEPersonTag.java

/**
 * Setter for e-people in list//from   www .java 2 s  . c  o m
 * 
 * @param e
 *            attribute from JSP
 */
public void setSelected(Object e) {
    if (e instanceof EPerson) {
        epeople = new EPerson[1];
        epeople[0] = (EPerson) e;
    } else if (e instanceof EPerson[]) {
        epeople = (EPerson[]) ArrayUtils.clone((EPerson[]) e);
    }
}

From source file:org.dspace.app.webui.jsptag.SelectGroupTag.java

/**
 * Setter for groups in list/*from   w  w  w  .j  a v  a2  s. c  om*/
 * 
 * @param g  attribute from JSP
 */
public void setSelected(Object g) {
    if (g instanceof Group) {
        groups = new Group[1];
        groups[0] = (Group) g;
    } else if (g instanceof Group[]) {
        groups = (Group[]) ArrayUtils.clone((Group[]) g);
    }
}

From source file:org.dspace.browse.BrowseDAOOracle.java

public String[] getCountValues() {
    return (String[]) ArrayUtils.clone(this.countValues);
}

From source file:org.dspace.browse.BrowseDAOOracle.java

public String[] getSelectValues() {
    return (String[]) ArrayUtils.clone(selectValues);
}

From source file:org.dspace.browse.BrowseDAOOracle.java

public void setCountValues(String[] fields) {
    this.countValues = (String[]) ArrayUtils.clone(fields);
    this.rebuildQuery = true;
}