Example usage for java.lang Class clone

List of usage examples for java.lang Class clone

Introduction

In this page you can find the example usage for java.lang Class clone.

Prototype

@HotSpotIntrinsicCandidate
protected native Object clone() throws CloneNotSupportedException;

Source Link

Document

Creates and returns a copy of this object.

Usage

From source file:com.riversoforion.acheron.jaxb.JAXBContextBuilder.java

/**
 * Binds the specified classes to the JAXBContext. Note that this method will have not effect if
 * {@link #forContextPath(String) contextPath} is not empty.
 * /*  ww w  . j a  va  2 s.  c o m*/
 * @param boundClasses
 *            The classes to bind.
 * @return This object
 */
public JAXBContextBuilder bindClasses(Class<?>... boundClasses) {

    this.boundClasses = boundClasses.clone();
    return this;
}