Class Joiner

java.lang.Object
com.google.api.client.util.Joiner

public final class Joiner extends Object
An object which joins pieces of text (specified as an array, Iterable, varargs or even a Map) with a separator.

NOTE: proxy for the Guava implementation of Joiner.

Since:
1.14
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final com.google.common.base.Joiner
    Wrapped joiner.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Joiner(com.google.common.base.Joiner wrapped)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final String
    join(Iterable<?> parts)
    Returns a string containing the string representation of each of parts, using the previously configured separator between each.
    static Joiner
    on(char separator)
    Returns a joiner which automatically places separator between consecutive elements.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • wrapped

      private final com.google.common.base.Joiner wrapped
      Wrapped joiner.
  • Constructor Details

    • Joiner

      private Joiner(com.google.common.base.Joiner wrapped)
      Parameters:
      wrapped - wrapped joiner
  • Method Details

    • on

      public static Joiner on(char separator)
      Returns a joiner which automatically places separator between consecutive elements.
    • join

      public final String join(Iterable<?> parts)
      Returns a string containing the string representation of each of parts, using the previously configured separator between each.