Tabnine Logo
Joiner.on
Code IndexAdd Tabnine 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)

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

  • Running tasks concurrently on multiple threads
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • compareTo (BigDecimal)
  • setRequestProperty (URLConnection)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • String (java.lang)
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now