public boolean equals(final Object object) { if (object == null) return false; if (this == object) return true; if (object instanceof NameValuePair) { NameValuePair that = (NameValuePair) object; return LangUtils.equals(this.name, that.name) && LangUtils.equals(this.value, that.value); } else { return false; } }
/** * @see java.lang.Object#equals(java.lang.Object) */ public synchronized boolean equals(final Object o) { if (o instanceof HostConfiguration) { // shortcut if we're comparing with ourselves if (o == this) { return true; } HostConfiguration that = (HostConfiguration) o; return LangUtils.equals(this.host, that.host) && LangUtils.equals(this.proxyHost, that.proxyHost) && LangUtils.equals(this.localAddress, that.localAddress); } else { return false; } }
/** * Performs a case-sensitive check to see if the components of the credentials * are the same. * * @param o The object to match. * * @return <code>true</code> if all of the credentials match. */ public boolean equals(Object o) { if (o == null) return false; if (this == o) return true; if (super.equals(o) ) { if (o instanceof NTCredentials) { NTCredentials that = (NTCredentials) o; return LangUtils.equals(this.domain, that.domain) && LangUtils.equals(this.host, that.host); } } return false; } }
/** * These credentials are assumed equal if the username and password are the * same. * * @param o The other object to compare with. * * @return <code>true</code> if the object is equivalent. */ public boolean equals(Object o) { if (o == null) return false; if (this == o) return true; // note - to allow for sub-classing, this checks that class is the same // rather than do "instanceof". if (this.getClass().equals(o.getClass())) { UsernamePasswordCredentials that = (UsernamePasswordCredentials) o; if (LangUtils.equals(this.userName, that.userName) && LangUtils.equals(this.password, that.password) ) { return true; } } return false; }
/** * Two cookies are equal if the name, path and domain match. * @param obj The object to compare against. * @return true if the two objects are equal. */ public boolean equals(Object obj) { if (obj == null) return false; if (this == obj) return true; if (obj instanceof Cookie) { Cookie that = (Cookie) obj; return LangUtils.equals(this.getName(), that.getName()) && LangUtils.equals(this.cookieDomain, that.cookieDomain) && LangUtils.equals(this.cookiePath, that.cookiePath); } else { return false; } }
public boolean equals(final Object object) { if (object == null) return false; if (this == object) return true; if (object instanceof NameValuePair) { NameValuePair that = (NameValuePair) object; return LangUtils.equals(this.name, that.name) && LangUtils.equals(this.value, that.value); } else { return false; } }
public boolean equals(final Object object) { if (object == null) return false; if (this == object) return true; if (object instanceof NameValuePair) { NameValuePair that = (NameValuePair) object; return LangUtils.equals(this.name, that.name) && LangUtils.equals(this.value, that.value); } else { return false; } }
public boolean equals(final Object object) { if (object == null) return false; if (this == object) return true; if (object instanceof NameValuePair) { NameValuePair that = (NameValuePair) object; return LangUtils.equals(this.name, that.name) && LangUtils.equals(this.value, that.value); } else { return false; } }
public boolean equals(final Object object) { if (object == null) return false; if (this == object) return true; if (object instanceof NameValuePair) { NameValuePair that = (NameValuePair) object; return LangUtils.equals(this.name, that.name) && LangUtils.equals(this.value, that.value); } else { return false; } }
/** * @see java.lang.Object#equals(java.lang.Object) */ public synchronized boolean equals(final Object o) { if (o instanceof HostConfiguration) { // shortcut if we're comparing with ourselves if (o == this) { return true; } HostConfiguration that = (HostConfiguration) o; return LangUtils.equals(this.host, that.host) && LangUtils.equals(this.proxyHost, that.proxyHost) && LangUtils.equals(this.localAddress, that.localAddress); } else { return false; } }
/** * @see java.lang.Object#equals(java.lang.Object) */ public synchronized boolean equals(final Object o) { if (o instanceof HostConfiguration) { // shortcut if we're comparing with ourselves if (o == this) { return true; } HostConfiguration that = (HostConfiguration) o; return LangUtils.equals(this.host, that.host) && LangUtils.equals(this.proxyHost, that.proxyHost) && LangUtils.equals(this.localAddress, that.localAddress); } else { return false; } }
/** * @see java.lang.Object#equals(java.lang.Object) */ public synchronized boolean equals(final Object o) { if (o instanceof HostConfiguration) { // shortcut if we're comparing with ourselves if (o == this) { return true; } HostConfiguration that = (HostConfiguration) o; return LangUtils.equals(this.host, that.host) && LangUtils.equals(this.proxyHost, that.proxyHost) && LangUtils.equals(this.localAddress, that.localAddress); } else { return false; } }
/** * @see java.lang.Object#equals(java.lang.Object) */ public synchronized boolean equals(final Object o) { if (o instanceof HostConfiguration) { // shortcut if we're comparing with ourselves if (o == this) { return true; } HostConfiguration that = (HostConfiguration) o; return LangUtils.equals(this.host, that.host) && LangUtils.equals(this.proxyHost, that.proxyHost) && LangUtils.equals(this.localAddress, that.localAddress); } else { return false; } }
/** * These credentials are assumed equal if the username and password are the * same. * * @param o The other object to compare with. * * @return <code>true</code> if the object is equivalent. */ public boolean equals(Object o) { if (o == null) return false; if (this == o) return true; // note - to allow for sub-classing, this checks that class is the same // rather than do "instanceof". if (this.getClass().equals(o.getClass())) { UsernamePasswordCredentials that = (UsernamePasswordCredentials) o; if (LangUtils.equals(this.userName, that.userName) && LangUtils.equals(this.password, that.password) ) { return true; } } return false; }
/** * These credentials are assumed equal if accessToken is the same. * * @param o The other object to compare with. * * @return 'True' if the object is equivalent. */ public boolean equals(Object o) { if (o == null) return false; if (this == o) return true; if (this.getClass().equals(o.getClass())) { BearerCredentials that = (BearerCredentials) o; return LangUtils.equals(mAccessToken, that.mAccessToken); } return false; }
/** * Performs a case-sensitive check to see if the components of the credentials * are the same. * * @param o The object to match. * * @return <code>true</code> if all of the credentials match. */ public boolean equals(Object o) { if (o == null) return false; if (this == o) return true; if (super.equals(o) ) { if (o instanceof NTCredentials) { NTCredentials that = (NTCredentials) o; return LangUtils.equals(this.domain, that.domain) && LangUtils.equals(this.host, that.host); } } return false; } }
/** * Two cookies are equal if the name, path and domain match. * @param obj The object to compare against. * @return true if the two objects are equal. */ public boolean equals(Object obj) { if (obj == null) return false; if (this == obj) return true; if (obj instanceof Cookie) { Cookie that = (Cookie) obj; return LangUtils.equals(this.getName(), that.getName()) && LangUtils.equals(this.cookieDomain, that.cookieDomain) && LangUtils.equals(this.cookiePath, that.cookiePath); } else { return false; } }
/** * Two cookies are equal if the name, path and domain match. * @param obj The object to compare against. * @return true if the two objects are equal. */ public boolean equals(Object obj) { if (obj == null) return false; if (this == obj) return true; if (obj instanceof Cookie) { Cookie that = (Cookie) obj; return LangUtils.equals(this.getName(), that.getName()) && LangUtils.equals(this.cookieDomain, that.cookieDomain) && LangUtils.equals(this.cookiePath, that.cookiePath); } else { return false; } }
/** * Two cookies are equal if the name, path and domain match. * @param obj The object to compare against. * @return true if the two objects are equal. */ public boolean equals(Object obj) { if (obj == null) return false; if (this == obj) return true; if (obj instanceof Cookie) { Cookie that = (Cookie) obj; return LangUtils.equals(this.getName(), that.getName()) && LangUtils.equals(this.cookieDomain, that.cookieDomain) && LangUtils.equals(this.cookiePath, that.cookiePath); } else { return false; } }
/** * Two cookies are equal if the name, path and domain match. * @param obj The object to compare against. * @return true if the two objects are equal. */ public boolean equals(Object obj) { if (obj == null) return false; if (this == obj) return true; if (obj instanceof Cookie) { Cookie that = (Cookie) obj; return LangUtils.equals(this.getName(), that.getName()) && LangUtils.equals(this.cookieDomain, that.cookieDomain) && LangUtils.equals(this.cookiePath, that.cookiePath); } else { return false; } }