Example usage for com.google.common.primitives Longs join

List of usage examples for com.google.common.primitives Longs join

Introduction

In this page you can find the example usage for com.google.common.primitives Longs join.

Prototype

public static String join(String separator, long... array) 

Source Link

Document

Returns a string containing the supplied long values separated by separator .

Usage

From source file:com.flexive.shared.FxArrayUtils.java

/**
 * Convert an int array to a string array with the given separator
 *
 * @param elements  elements to convert to a String
 * @param separator separator for the resulting String
 * @return String representation of the array
 * @since 3.2.0/*from w  w w .j  av  a 2s.  c  o m*/
 */
public static String toStringArray(long[] elements, char separator) {
    return Longs.join(String.valueOf(separator), elements);
}