@Override public boolean equals(Object obj){
  if ((obj instanceof KeepAliveKey) == false)   return false;
  KeepAliveKey kae=(KeepAliveKey)obj;
  return host.equals(kae.host) && (port == kae.port) && protocol.equals(kae.protocol)&& this.obj == kae.obj;
}

@ Override public boolean equals ( Object obj ) { if ( ( obj instanceof KeepAliveKey ) == false ) return false ; KeepAliveKey kae = ( KeepAliveKey ) obj ; return host . equals ( kae . host ) && ( port == kae . port ) && protocol . equals ( kae . protocol ) && this . obj == kae . obj ; }
determine whether or not two objects of this type are equal
