All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.prismic.Utils Maven / Gradle / Ivy

Go to download

The developer kit to access Prismic.io repositories using the Java language.

The newest version!
package io.prismic;

import java.util.Arrays;

class Utils {

  public static  String mkString(Iterable it, String separator) {
    boolean first = true;
    StringBuilder result = new StringBuilder();
    for (T t: it) {
      if (!first) {
        result.append(separator);
      }
      result.append(t.toString());
      first = false;
    }
    return result.toString();
  }

  public static  String mkString(T[] arr, String separator) {
    return mkString(Arrays.asList(arr), separator);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy