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.displaytag.exception.MissingAttributeException.java

/**
 * returns an array containing the names of missing attributes.
 * @return String[] array of missing attributes
 *//*from w  w  w.  j  av  a2s.  c  o m*/
public String[] getAttributeNames() {
    return (String[]) ArrayUtils.clone(this.attributes);
}

From source file:org.dspace.app.dav.DAVResource.java

/**
 * Instantiates a new DAV resource.//from w w  w .ja  v  a 2 s .  c o  m
 * 
 * @param context the context
 * @param request the request
 * @param response the response
 * @param pathElt the path elt
 */
protected DAVResource(Context context, HttpServletRequest request, HttpServletResponse response,
        String pathElt[]) {
    this.pathElt = (String[]) ArrayUtils.clone(pathElt);
    this.request = request;
    this.response = response;
    this.context = context;
}

From source file:org.dspace.app.util.SyndicationFeed.java

/**
 * Returns list of metadata selectors used to compose the description element
 *
 * @return selector list - format 'schema.element[.qualifier]'
 *//*from w  w w.  j av  a2s  .  c o m*/
public static String[] getDescriptionSelectors() {
    return (String[]) ArrayUtils.clone(descriptionFields);
}

From source file:org.dspace.app.webui.components.RecentSubmissions.java

/**
 * Construct a new RecentSubmissions object to represent the passed
 * array of items/*from  w  ww  .  j  a va  2s .com*/
 * 
 * @param items
 */
public RecentSubmissions(Item[] items) {
    this.items = (Item[]) ArrayUtils.clone(items);
}

From source file:org.dspace.app.webui.components.RecentSubmissions.java

/**
 * Obtain the array of items
 * 
 * @return   an array of items
 */
public Item[] getRecentSubmissions() {
    return (Item[]) ArrayUtils.clone(items);
}

From source file:org.dspace.app.webui.components.StatisticsBean.java

public String[][] getMatrix() {
    return (String[][]) ArrayUtils.clone(this.matrix);
}

From source file:org.dspace.app.webui.components.StatisticsBean.java

public void setMatrix(final String[][] matrix) {
    this.matrix = (String[][]) ArrayUtils.clone(matrix);
}

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

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

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

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

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

/**
 * Get the collections to list
 * 
 * @return the collections
 */
public Collection[] getCollections() {
    return (Collection[]) ArrayUtils.clone(collections);
}