public boolean hasSameConfiguration ( BoneCPConfig that ) { if ( that != null && Objects . equal ( this . acquireIncrement , that . getAcquireIncrement ( ) ) && Objects . equal ( this . acquireRetryDelayInMs , that . getAcquireRetryDelayInMs ( ) ) && Objects . equal ( this . closeConnectionWatch , that . isCloseConnectionWatch ( ) ) && Objects . equal ( this . logStatementsEnabled , that . isLogStatementsEnabled ( ) ) && Objects . equal ( this . connectionHook , that . getConnectionHook ( ) ) && Objects . equal ( this . connectionTestStatement , that . getConnectionTestStatement ( ) ) && Objects . equal ( this . idleConnectionTestPeriodInSeconds , that . getIdleConnectionTestPeriod ( TimeUnit . SECONDS ) ) && Objects . equal ( this . idleMaxAgeInSeconds , that . getIdleMaxAge ( TimeUnit . SECONDS ) ) && Objects . equal ( this . initSQL , that . getInitSQL ( ) ) && Objects . equal ( this . jdbcUrl , that . getJdbcUrl ( ) ) && Objects . equal ( this . maxConnectionsPerPartition , that . getMaxConnectionsPerPartition ( ) ) && Objects . equal ( this . minConnectionsPerPartition , that . getMinConnectionsPerPartition ( ) ) && Objects . equal ( this . partitionCount , that . getPartitionCount ( ) ) && Objects . equal ( this . releaseHelperThreads , that . getReleaseHelperThreads ( ) ) && Objects . equal ( this . statementsCacheSize , that . getStatementsCacheSize ( ) ) && Objects . equal ( this . username , that . getUsername ( ) ) && Objects . equal ( this . password , that . getPassword ( ) ) && Objects . equal ( this . lazyInit , that . isLazyInit ( ) ) && Objects . equal ( this . transactionRecoveryEnabled , that . isTransactionRecoveryEnabled ( ) ) && Objects . equal ( this . acquireRetryAttempts , that . getAcquireRetryAttempts ( ) ) && Objects . equal ( this . statementReleaseHelperThreads , that . getStatementReleaseHelperThreads ( ) ) && Objects . equal ( this . closeConnectionWatchTimeoutInMs , that . getCloseConnectionWatchTimeout ( ) ) && Objects . equal ( this . connectionTimeoutInMs , that . getConnectionTimeoutInMs ( ) ) && Objects . equal ( this . datasourceBean , that . getDatasourceBean ( ) ) && Objects . equal ( this . getQueryExecuteTimeLimitInMs ( ) , that . getQueryExecuteTimeLimitInMs ( ) ) && Objects . equal ( this . poolAvailabilityThreshold , that . getPoolAvailabilityThreshold ( ) ) && Objects . equal ( this . poolName , that . getPoolName ( ) ) && Objects . equal ( this . disableConnectionTracking , that . isDisableConnectionTracking ( ) ) ) { return true ; } return false ; }
Returns true if this instance has the same config as a given config .