Code example for Joiner

Methods: join

0
      return null; 
    } 
    String host = url.getHost();
    StringBuilder key = new StringBuilder();
 
    key.append(JOINER.join(Lists.reverse(Arrays.asList(host.split("\\.", 0)))));
    int port = url.getPort();
    if (port != -1) {
      key.append(":").append(port);
    } 
    key.append(url.getFile());
 
    return key.toString();
  } 
 
  public static String reverseHostname(String h) {
    String[] splits = h.split("\\/");
    String[] ports = splits[0].split("\\:", 0);
 
    StringBuilder host = new StringBuilder();
Contextual code suggestions in your IDE  Get Codota for Java