Code example for InetSocketAddress

Methods: hashCode

0
   } 
 
   @Override 
   public int hashCode() { 
      int result = socket != null ? socket.hashCode() : 0;
      result = 31 * result + (serverAddress != null ? serverAddress.hashCode() : 0);
      return result;
   } 
 
   public void destroy() { 
      try { 
         socket.close();
         if (trace) {
            log.trace("Successfully closed socket: " + socket);
         } 
      } catch (IOException e) {
         log.warn("Issues closing transport: " + this, e);
      } 
   } 
 
   public boolean isValid() {