Пример #1
0
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    ChatStateManager that = (ChatStateManager) o;

    return connection.equals(that.connection);
  }
 @Override
 public boolean equals(Object obj) {
   if (this == obj) {
     return true;
   }
   if (obj == null) {
     return false;
   }
   if (getClass() != obj.getClass()) {
     return false;
   }
   ChannelCachingConnectionProxy other = (ChannelCachingConnectionProxy) obj;
   if (target == null) {
     if (other.target != null) {
       return false;
     }
   } else if (!target.equals(other.target)) {
     return false;
   }
   return true;
 }