/** * Retrieves a hash code for this LDAP URL. * * @return A hash code for this LDAP URL. */ @Override() public int hashCode() { return toNormalizedString().hashCode(); }
/** * Retrieves a hash code for this LDAP URL. * * @return A hash code for this LDAP URL. */ @Override() public int hashCode() { return toNormalizedString().hashCode(); }
/** * Indicates whether the provided object is equal to this LDAP URL. In order * to be considered equal, the provided object must be an LDAP URL with the * same normalized string representation. * * @param o The object for which to make the determination. * * @return {@code true} if the provided object is equal to this LDAP URL, or * {@code false} if not. */ @Override() public boolean equals(final Object o) { if (o == null) { return false; } if (o == this) { return true; } if (! (o instanceof LDAPURL)) { return false; } final LDAPURL url = (LDAPURL) o; return toNormalizedString().equals(url.toNormalizedString()); }
/** * Retrieves a normalized string representation of this LDAP URL. * * @return A normalized string representation of this LDAP URL. */ public String toNormalizedString() { if (normalizedURLString == null) { final StringBuilder buffer = new StringBuilder(); toNormalizedString(buffer); normalizedURLString = buffer.toString(); } return normalizedURLString; }
/** * Retrieves a normalized string representation of this LDAP URL. * * @return A normalized string representation of this LDAP URL. */ public String toNormalizedString() { if (normalizedURLString == null) { final StringBuilder buffer = new StringBuilder(); toNormalizedString(buffer); normalizedURLString = buffer.toString(); } return normalizedURLString; }
/** * Indicates whether the provided object is equal to this LDAP URL. In order * to be considered equal, the provided object must be an LDAP URL with the * same normalized string representation. * * @param o The object for which to make the determination. * * @return {@code true} if the provided object is equal to this LDAP URL, or * {@code false} if not. */ @Override() public boolean equals(final Object o) { if (o == null) { return false; } if (o == this) { return true; } if (! (o instanceof LDAPURL)) { return false; } final LDAPURL url = (LDAPURL) o; return toNormalizedString().equals(url.toNormalizedString()); }