public MongoOptions copy() {
        MongoOptions m = new MongoOptions();
        m.connectionsPerHost = connectionsPerHost;
        m.threadsAllowedToBlockForConnectionMultiplier = threadsAllowedToBlockForConnectionMultiplier;
        m.maxWaitTime = maxWaitTime;
        m.connectTimeout = connectTimeout;
        m.socketFactory = socketFactory;
        m.socketTimeout = socketTimeout;
        m.socketKeepAlive = socketKeepAlive;
        m.readPreference = readPreference;
        m.writeConcern = writeConcern;
        m.safe = safe;
        m.w = w;
        m.wtimeout = wtimeout;
        m.fsync = fsync;
        m.j = j;
        m.dbDecoderFactory = dbDecoderFactory;
        m.dbEncoderFactory = dbEncoderFactory;
        m.description = description;
        m.cursorFinalizerEnabled = cursorFinalizerEnabled;
        m.alwaysUseMBeans = alwaysUseMBeans;
        m.requiredReplicaSetName = requiredReplicaSetName;
        return m;
    }
public MongoOptions copy() {
        MongoOptions m = new MongoOptions();
        m.connectionsPerHost = connectionsPerHost;
        m.threadsAllowedToBlockForConnectionMultiplier = threadsAllowedToBlockForConnectionMultiplier;
        m.maxWaitTime = maxWaitTime;
        m.connectTimeout = connectTimeout;
        m.socketFactory = socketFactory;
        m.socketTimeout = socketTimeout;
        m.socketKeepAlive = socketKeepAlive;
        m.readPreference = readPreference;
        m.writeConcern = writeConcern;
        m.safe = safe;
        m.w = w;
        m.wtimeout = wtimeout;
        m.fsync = fsync;
        m.j = j;
        m.dbDecoderFactory = dbDecoderFactory;
        m.dbEncoderFactory = dbEncoderFactory;
        m.description = description;
        m.cursorFinalizerEnabled = cursorFinalizerEnabled;
        m.alwaysUseMBeans = alwaysUseMBeans;
        m.requiredReplicaSetName = requiredReplicaSetName;
        return m;
    }
public MongoOptions copy ( ) { MongoOptions m = new MongoOptions ( ) ; m . connectionsPerHost = connectionsPerHost ; m . threadsAllowedToBlockForConnectionMultiplier = threadsAllowedToBlockForConnectionMultiplier ; m . maxWaitTime = maxWaitTime ; m . connectTimeout = connectTimeout ; m . socketFactory = socketFactory ; m . socketTimeout = socketTimeout ; m . socketKeepAlive = socketKeepAlive ; m . readPreference = readPreference ; m . writeConcern = writeConcern ; m . safe = safe ; m . w = w ; m . wtimeout = wtimeout ; m . fsync = fsync ; m . j = j ; m . dbDecoderFactory = dbDecoderFactory ; m . dbEncoderFactory = dbEncoderFactory ; m . description = description ; m . cursorFinalizerEnabled = cursorFinalizerEnabled ; m . alwaysUseMBeans = alwaysUseMBeans ; m . requiredReplicaSetName = requiredReplicaSetName ; return m ; }
Copy this MongoOptions instance into a new instance.

@return the new MongoOptions with the same settings as this instance.
Copy this MongoOptions instance into a new instance .