public final class ArrayJoiner extends Object
Joiner utility that works for primitive arrays which Guava's Joiner
can't deal with.| Modifier and Type | Method and Description |
|---|---|
String |
join(byte[] array)
Joins the given array with the separator and returns the resulting string.
|
String |
join(char[] array)
Joins the given array with the separator and returns the resulting string.
|
String |
join(double[] array)
Joins the given array with the separator and returns the resulting string.
|
String |
join(float[] array)
Joins the given array with the separator and returns the resulting string.
|
String |
join(int[] array)
Joins the given array with the separator and returns the resulting string.
|
String |
join(long[] array)
Joins the given array with the separator and returns the resulting string.
|
String |
join(short[] array)
Joins the given array with the separator and returns the resulting string.
|
static ArrayJoiner |
on(char separator) |
static ArrayJoiner |
on(String separator) |
public String join(byte[] array)
array - a not null array of byte.public String join(short[] array)
array - a not null array of short.public String join(int[] array)
array - a not null array of int.public String join(long[] array)
array - a not null array of long.public String join(float[] array)
array - a not null array of float.public String join(double[] array)
array - a not null array of double.public String join(char[] array)
array - a not null array of char.public static ArrayJoiner on(char separator)
public static ArrayJoiner on(String separator)
Copyright © 2016. All rights reserved.