Lines Matching defs:tokens
308 * Returns a string containing the tokens joined by delimiters.
310 * @param delimiter a CharSequence that will be inserted between the tokens. If null, the string
312 * @param tokens an array objects to be joined. Strings will be formed from the objects by
313 * calling object.toString(). If tokens is null, a NullPointerException will be thrown. If
314 * tokens is an empty array, an empty string will be returned.
316 public static String join(@NonNull CharSequence delimiter, @NonNull Object[] tokens) {
317 final int length = tokens.length;
322 sb.append(tokens[0]);
325 sb.append(tokens[i]);
331 * Returns a string containing the tokens joined by delimiters.
333 * @param delimiter a CharSequence that will be inserted between the tokens. If null, the string
335 * @param tokens an array objects to be joined. Strings will be formed from the objects by
336 * calling object.toString(). If tokens is null, a NullPointerException will be thrown. If
337 * tokens is empty, an empty string will be returned.
339 public static String join(@NonNull CharSequence delimiter, @NonNull Iterable tokens) {
340 final Iterator<?> it = tokens.iterator();