assert( name != null ); assert( connectInfo != null ); assert( conn != null ); mName = name; // clone this; we don't want it changing mConnectInfo = new ConnectInfo( connectInfo ); mConn = conn;
if ( o == this ) return( true ); if ( ! (o instanceof Connection ) ) { return( false ); } final Connection rhs = (Connection)o; return( mName.equals( rhs.mName ) && mConnectInfo.equals( rhs.mConnectInfo ) );