Codota Logo
Joiner.on
Code IndexAdd Codota to your IDE (free)

How to use
on
method
in
jersey.repackaged.com.google.common.base.Joiner

Best Java code snippets using jersey.repackaged.com.google.common.base.Joiner.on (Showing top 13 results out of 315)

  • Common ways to obtain Joiner
private void myMethod () {
Joiner j =
  • Codota IconString separator;new Joiner(separator)
  • Codota Iconnew Joiner(String.valueOf(value))
  • Smart code suggestions by Codota
}
origin: opensourceBIM/BIMserver

@Override
public String toString() {
  return roid + " " + nrTriangles + " " + Joiner.on(", ").join(excludedTypes);
}
origin: ru.lanwen.diff/uri-differ-lib

  @Override
  public String toString() {
    return String.format("%nChange: %s, deltas:%n\t%s", type, on("\n\t").join(diffs));
  }
}
origin: ru.lanwen.diff/uri-differ-lib

  @Override
  public String toString() {
    return String.format("Ignoring:%s", on(",").join(schemeCanBe));
  }
}
origin: hstaudacher/osgi-jax-rs-connector

 @Override public String toString() {
  return Joiner.on(", ")
    .appendTo(new StringBuilder().append('['), this)
    .append(']')
    .toString();
 }
};
origin: org.glassfish.jersey.bundles.repackaged/jersey-guava

 @Override public String toString() {
  return Joiner.on(", ")
    .appendTo(new StringBuilder().append('['), this)
    .append(']')
    .toString();
 }
};
origin: com.eclipsesource.jaxrs/jersey-all

 @Override public String toString() {
  return Joiner.on(", ")
    .appendTo(new StringBuilder().append('['), this)
    .append(']')
    .toString();
 }
};
origin: hstaudacher/osgi-jax-rs-connector

 @Override public String toString() {
  return Joiner.on(", ")
    .appendTo(new StringBuilder().append('['), this)
    .append(']')
    .toString();
 }
};
origin: ru.lanwen.diff/uri-differ-lib

@Override
public String toString() {
  return String.format("Url <%s>%nchanged to <%s>:%n%s", original, revised, on("\n").join(changes));
}
origin: ru.lanwen.diff/uri-differ-lib

@Override
public URI apply(URI uri) {
  UriBuilder urlBuilder = UriBuilder.fromUri(uri);
  if (schemeCanBe.isEmpty() || schemeCanBe.contains(urlBuilder.build().getScheme())) {
    String scheme = defaultIfEmpty(on(".").join(schemeCanBe), "any-scheme");
    return urlBuilder.scheme(scheme).build();
  }
  return uri;
}
origin: ru.lanwen.diff/uri-differ-lib

private String toQuery(Map<String, List<String>> params) {
  List<String> pairs = params.entrySet().stream()
      .flatMap(entry -> entry.getValue()
          .stream()
          .map(value -> eachQueryParamPair(entry.getKey(), encode(value)))
      )
      .collect(toList());
  return on(UriPart.QUERY.getJoiner()).join(pairs);
}
origin: mesosphere/dcos-commons

/**
 * Stores the list of services that are selected for reservations.
 *
 * @param serviceNames The service names to be stored
 * @return whether the underlying storage was actually updated
 * @throws PersisterException when storing the selection fails
 */
public boolean storeSelectedServices(Set<String> serviceNames) throws PersisterException {
 if (serviceNamesCache.isPresent() && serviceNames.equals(serviceNamesCache.get())) {
  // No change.
  return false;
 }
 serviceNamesCache = Optional.of(ImmutableSet.copyOf(serviceNames));
 byte[] data = Joiner.on(SERVICE_NAME_DELIMITER).join(serviceNames).getBytes(CHARSET);
 persister.set(SELECTED_SERVICES_PATH_NAME, data);
 return true;
}
origin: ru.lanwen.diff/uri-differ-lib

@Override
public URI apply(URI uri) {
  UriBuilder uriBuilder = UriBuilder.fromUri(uri);
  Map<String, List<String>> params = UriSplitter.queryParams(uriBuilder.build());
  if (values.isEmpty()) {
    params.remove(name);
    params.put(name, singletonList(ANY_VALUE));
    return uriBuilder.replaceQuery(toQuery(params)).build();
  }
  UriSplitter.removeValues(params, name, values);
  if (params.containsKey(name)) {
    params.get(name).add(format(ANY_OF, on(ANY_OF_SEPARATOR).join(values)));
  } else {
    params.put(name, singletonList(format(ANY_OF, on(ANY_OF_SEPARATOR).join(values))));
  }
  return uriBuilder.replaceQuery(toQuery(params)).build();
}
origin: ru.lanwen.diff/uri-differ-lib

@Override
public FormattedDelta apply(Delta from) {
  String original = on(delimiter).join(from.getOriginal().getLines());
  String revised = on(delimiter).join(from.getRevised().getLines());
  return new FormattedDelta(
      wrap(from.getType(), original, revised),
      from.getOriginal().getPosition(),
      from.getOriginal().size(),
      from.getType()
  );
}
jersey.repackaged.com.google.common.baseJoineron

Javadoc

Returns a joiner which automatically places separator between consecutive elements.

Popular methods of Joiner

  • join
    Returns a string containing the string representation of each of parts, using the previously configu
  • <init>
  • appendTo
    Appends the string representation of each of parts, using the previously configured separator betwee
  • toString

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now