List of usage examples for javax.naming Context equals
public boolean equals(Object obj)
From source file:org.springframework.ldap.pool.DelegatingContext.java
/** * @see java.lang.Object#equals(java.lang.Object) *//*from w w w. j a va 2 s.c o m*/ public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof Context)) { return false; } final Context thisContext = this.getInnermostDelegateContext(); Context otherContext = (Context) obj; if (otherContext instanceof DelegatingContext) { otherContext = ((DelegatingContext) otherContext).getInnermostDelegateContext(); } return thisContext == otherContext || (thisContext != null && thisContext.equals(otherContext)); }