driver-core/src/main/com/mongodb/BasicDBList.java
public Object copy() {
        // copy field values into new object
        BasicDBList newobj = new BasicDBList();
        // need to clone the sub obj
        for (int i = 0; i < size(); ++i) {
            Object val = get(i);
            if (val instanceof BasicDBObject) {
                val = ((BasicDBObject) val).copy();
            } else if (val instanceof BasicDBList) {
                val = ((BasicDBList) val).copy();
            }
            newobj.add(val);
        }
        return newobj;
    }
public Object copy() {
        // copy field values into new object
        BasicDBList newobj = new BasicDBList();
        // need to clone the sub obj
        for (int i = 0; i < size(); ++i) {
            Object val = get(i);
            if (val instanceof BasicDBObject) {
                val = ((BasicDBObject) val).copy();
            } else if (val instanceof BasicDBList) {
                val = ((BasicDBList) val).copy();
            }
            newobj.add(val);
        }
        return newobj;
    }
public Object copy ( ) { // copy field values into new object BasicDBList newobj = new BasicDBList ( ) ; // need to clone the sub obj for ( int i = 0 ; i < size ( ) ; ++ i ) { Object val = get ( i ) ; if ( val instanceof BasicDBObject ) { val = ( ( BasicDBObject ) val ) . copy ( ) ; } else if ( val instanceof BasicDBList ) { val = ( ( BasicDBList ) val ) . copy ( ) ; } newobj . add ( val ) ; } return newobj ; }
Copies this instance into a new Object.

@return a new BasicDBList with the same values as this instance
Copies this instance into a new Object .