public HopImpl(String hostName,int portNumber,String trans){
  host=hostName;
  if (host.indexOf(":") >= 0)   if (host.indexOf("[") < 0)   host="[" + host + "]";
  port=portNumber;
  transport=trans;
}

public HopImpl ( String hostName , int portNumber , String trans ) { host = hostName ; if ( host . indexOf ( ":" ) >= 0 ) if ( host . indexOf ( "[" ) < 0 ) host = "[" + host + "]" ; port = portNumber ; transport = trans ; }
create new hop given host , port and transport .
