/** * Gets the hash code of this Dn. * * @see java.lang.Object#hashCode() * @return the instance hash code */ @Override public int hashCode() { int result = 37; for ( Rdn rdn : rdns ) { result = result * 17 + rdn.hashCode(); } return result; }
/** * Gets the hash code of this Dn. * * @see java.lang.Object#hashCode() * @return the instance hash code */ @Override public int hashCode() { int result = 37; for ( Rdn rdn : rdns ) { result = result * 17 + rdn.hashCode(); } return result; }
/** * Gets the hash code of this Dn. * * @see java.lang.Object#hashCode() * @return the instance hash code */ @Override public int hashCode() { int result = 37; for ( Rdn rdn : rdns ) { result = result * 17 + rdn.hashCode(); } return result; }
/** * Creates a new schema aware RDN from a list of AVA * * @param schemaManager The schemaManager to use * @param avas The AVA that will be used * @throws LdapInvalidDnException If the RDN is invalid */ public Rdn( SchemaManager schemaManager, Ava... avas ) throws LdapInvalidDnException { StringBuilder buffer = new StringBuilder(); for ( int i = 0; i < avas.length; i++ ) { if ( i > 0 ) { buffer.append( '+' ); } addAVA( schemaManager, avas[i] ); buffer.append( avas[i].getName() ); } setUpName( buffer.toString() ); hashCode(); }
/** * Creates a new schema aware RDN from a list of AVA * * @param schemaManager The schemaManager to use * @param avas The AVA that will be used * @throws LdapInvalidDnException If the RDN is invalid */ public Rdn( SchemaManager schemaManager, Ava... avas ) throws LdapInvalidDnException { StringBuilder buffer = new StringBuilder(); for ( int i = 0; i < avas.length; i++ ) { if ( i > 0 ) { buffer.append( '+' ); } addAVA( schemaManager, avas[i] ); buffer.append( avas[i].getName() ); } setUpName( buffer.toString() ); hashCode(); }
/** * Creates a new schema aware RDN from a list of AVA * * @param schemaManager The schemaManager to use * @param avas The AVA that will be used * @throws LdapInvalidDnException If the RDN is invalid */ public Rdn( SchemaManager schemaManager, Ava... avas ) throws LdapInvalidDnException { StringBuilder buffer = new StringBuilder(); for ( int i = 0; i < avas.length; i++ ) { if ( i > 0 ) { buffer.append( '+' ); } addAVA( schemaManager, avas[i] ); buffer.append( avas[i].getName() ); } setUpName( buffer.toString() ); hashCode(); }
normalized = true; hashCode();
normalized = true; hashCode();
/** * A constructor that parse a String representing a schema aware Rdn. * * @param schemaManager the schema manager * @param rdn the String containing the Rdn to parse * @throws LdapInvalidDnException if the Rdn is invalid */ public Rdn( SchemaManager schemaManager, String rdn ) throws LdapInvalidDnException { if ( Strings.isNotEmpty( rdn ) ) { // Parse the string. The Rdn will be updated. parse( schemaManager, rdn, this ); if ( upName.length() < rdn.length() ) { throw new LdapInvalidDnException( I18n.err( I18n.ERR_13625_INVALID_RDN ) ); } upName = rdn; } else { upName = ""; normName = ""; normalized = true; } hashCode(); }
/** * A constructor that parse a String representing a schema aware Rdn. * * @param schemaManager the schema manager * @param rdn the String containing the Rdn to parse * @throws LdapInvalidDnException if the Rdn is invalid */ public Rdn( SchemaManager schemaManager, String rdn ) throws LdapInvalidDnException { if ( Strings.isNotEmpty( rdn ) ) { // Parse the string. The Rdn will be updated. parse( schemaManager, rdn, this ); if ( upName.length() < rdn.length() ) { throw new LdapInvalidDnException( I18n.err( I18n.ERR_13625_INVALID_RDN ) ); } upName = rdn; } else { upName = ""; normName = ""; normalized = true; } hashCode(); }
/** * A constructor that parse a String representing a schema aware Rdn. * * @param schemaManager the schema manager * @param rdn the String containing the Rdn to parse * @throws LdapInvalidDnException if the Rdn is invalid */ public Rdn( SchemaManager schemaManager, String rdn ) throws LdapInvalidDnException { if ( Strings.isNotEmpty( rdn ) ) { // Parse the string. The Rdn will be updated. parse( schemaManager, rdn, this ); if ( upName.length() < rdn.length() ) { throw new LdapInvalidDnException( I18n.err( I18n.ERR_13625_INVALID_RDN ) ); } upName = rdn; } else { upName = ""; normName = ""; normalized = true; } hashCode(); }
normalized = true; hashCode();
/** * {@inheritDoc} */ @Override public int hashCode() { int hash = 37; if ( name != null ) { hash = hash * 17 + name.hashCode(); } hash = hash * 17 + ( deleteOldRdn ? 0 : 1 ); if ( newRdn != null ) { hash = hash * 17 + newRdn.hashCode(); } if ( newSuperior != null ) { hash = hash * 17 + newSuperior.hashCode(); } hash = hash * 17 + super.hashCode(); return hash; }
/** * {@inheritDoc} */ @Override public int hashCode() { int hash = 37; if ( name != null ) { hash = hash * 17 + name.hashCode(); } hash = hash * 17 + ( deleteOldRdn ? 0 : 1 ); if ( newRdn != null ) { hash = hash * 17 + newRdn.hashCode(); } if ( newSuperior != null ) { hash = hash * 17 + newSuperior.hashCode(); } hash = hash * 17 + super.hashCode(); return hash; }
/** * {@inheritDoc} */ @Override public int hashCode() { int hash = 37; if ( name != null ) { hash = hash * 17 + name.hashCode(); } hash = hash * 17 + ( deleteOldRdn ? 0 : 1 ); if ( newRdn != null ) { hash = hash * 17 + newRdn.hashCode(); } if ( newSuperior != null ) { hash = hash * 17 + newSuperior.hashCode(); } hash = hash * 17 + super.hashCode(); return hash; }