@Test public void join_simple() { assertEquals("foo", Utils.join("|", new String[]{"foo"})); assertEquals("foo|bar", Utils.join("|", new String[]{"foo", "bar"})); assertEquals("foo|bar|baz", Utils.join("|", new String[]{"foo", "bar", "baz"})); }
public static String join(CharSequence divider, CharSequence[] parts) { StringBuilder sb = new StringBuilder(parts.length*6); for (CharSequence s : parts) { if (sb.length() > 0) { sb.append(divider); } sb.append(s); } return sb.toString(); }
Utils { public static String join(CharSequence divider, CharSequence[] parts) { StringBuilder sb = new StringBuilder(parts.length*6); for (CharSequence s : parts) { if (sb.length() > 0) { sb.append(divider); } sb.append(s); } return sb.toString(); } }
Utils { public static String join(CharSequence divider, CharSequence[] parts) { StringBuilder sb = new StringBuilder(parts.length*6); for (CharSequence s : parts) { if (sb.length() > 0) { sb.append(divider); } sb.append(s); } return sb.toString(); } private  Utils(); }
Utils { public static String join(CharSequence divider, CharSequence[] parts) { StringBuilder sb = new StringBuilder(parts.length*6); for (CharSequence s : parts) { if (sb.length() > 0) { sb.append(divider); } sb.append(s); } return sb.toString(); } private  Utils(); static String join(CharSequence divider, CharSequence[] parts); static int getIdentifier(Context context, String identifierStr); static void setImageLoader(SRMLImageLoader imageLoader); static Bitmap loadImage(Context context, String url, int width, int height); static int getPixelSize(Context context, String size); static int getColorInt(String colorValue); static int getColorInt(Context context, String colorValueOrResource); }
Utils { public static String join(CharSequence divider, CharSequence[] parts) { StringBuilder sb = new StringBuilder(parts.length*6); for (CharSequence s : parts) { if (sb.length() > 0) { sb.append(divider); } sb.append(s); } return sb.toString(); } private  Utils(); static String join(CharSequence divider, CharSequence[] parts); static int getIdentifier(Context context, String identifierStr); static void setImageLoader(SRMLImageLoader imageLoader); static Bitmap loadImage(Context context, String url, int width, int height); static int getPixelSize(Context context, String size); static int getColorInt(String colorValue); static int getColorInt(Context context, String colorValueOrResource);  }