Join the values with the given joint.

@param joint the joint.
@param values the values.
@return the jointed values
511756
public static String join(String joint, String... values) {
		final StringBuilder b = new StringBuilder();
		for (final String value : values) {
			if (value != null && !EMPTY_STRING.equals(value)) {
				if (b.length() > 0) {
					b.append(joint);
				}
				b.append(value);
			}
		}
		return b.toString();
	}
62159
public static <T> String join(String delimiter, Collection<T> strings) {
        StringBuilder builder = new StringBuilder();
        boolean first = true;
        for (T o : strings) {
            if (first) {
                first = false;
            } else {
                builder.append(delimiter);
            }
            builder.append(Objects.toString(o));
        }
        return builder.toString();
    }
701590
public ListOrdersResult withOrders(Order... values) {
        List<Order> list = getOrders();
        for (Order value : values) {
            list.add(value);
        }
        return this;
    }
77728
public static <T> String join(T[] array) {
        return new JoinStrings<T>().apply(new ArrayIterator<T>(array));
    }
788146
public static JoinRelType toJoinRelType(FlinkJoinType joinType) {
		switch (joinType) {
			case INNER:
				return JoinRelType.INNER;
			case LEFT:
				return JoinRelType.LEFT;
			case RIGHT:
				return JoinRelType.RIGHT;
			case FULL:
				return JoinRelType.FULL;
			default:
				throw new IllegalArgumentException("invalid: " + joinType);
		}
	}
452681
public static String join(Iterator<? extends EncodedPair> pairs, char pairSep){
        return join(pairs, pairSep, '=', false, false);
    }
245823
public static String joiningWithDelimiter(CharSequence delimiter,
            String... strings) {
        return joiningWith(Arrays.stream(strings), delimiter);
    }
1038479
@NonNull public <T> CharSequence join(@NonNull Iterable<T> items) {
    checkNotNullOrEmpty(items);
    return join(items, null);
  }
975404
public static Pair<String, String> pair (final String name, 
        final boolean value)
        {
        return pair(name, String.valueOf(value));
        }
1067101
public static String join(String delimiter, Object... values) {
        // Since primitive arrays does not pass as a values array, but as it's
        // single first element.
        if (values.length == 1) {
            Class<?> type = values[0].getClass();
            if (char[].class.equals(type)) {
                return joinP(delimiter, (char[]) values[0]);
            } else if (int[].class.equals(type)) {
                return joinP(delimiter, (int[]) values[0]);
            } else if (long[].class.equals(type)) {
                return joinP(delimiter, (long[]) values[0]);
            } else if (double[].class.equals(type)) {
                return joinP(delimiter, (double[]) values[0]);
            } else if (boolean[].class.equals(type)) {
                return joinP(delimiter, (boolean[]) values[0]);
            }
        }

        StringBuilder builder = new StringBuilder();
        boolean first = true;
        for (Object value : values) {
            if (first) {
                first = false;
            } else {
                builder.append(delimiter);
            }
            builder.append(Objects.toString(value));
        }

        return builder.toString();
    }
242805
@Nonnull
  @MayContainNull
  @Weight(Weight.Unit.NORMAL)
  public static <T> T[] joinArrays(@MayContainNull final T[]... arrays) {
    int commonLength = 0;
    for (final T[] array : arrays) {
      if (array != null) {
        commonLength += array.length;
      }
    }
    @SuppressWarnings("unchecked")
    final T[] result = (T[]) Array.newInstance(arrays.getClass().getComponentType().getComponentType(), commonLength);
    int position = 0;
    for (final T[] array : arrays) {
      if (array != null) {
        System.arraycopy(array, 0, result, position, array.length);
        position += array.length;
      }
    }
    return result;
  }
895929
public static String join(Object[] elements, String glue) {
    return (join(Arrays.asList(elements), glue));
  }
953042
public DoubleAdder add(final double[] values) {
		for (int i = values.length; --i >= 0;) {
			add(values[i]);
		}

		return this;
	}
715078
public static JCalValue multi(List<?> values) {
		List<JsonValue> multiValues = new ArrayList<JsonValue>(values.size());
		for (Object value : values) {
			multiValues.add(new JsonValue(value));
		}
		return new JCalValue(multiValues);
	}
580860
public static String join(String delim, Iterable<?> objects) {
    return join(new StringBuilder(), delim, objects).toString();
  }
1119849
public static <K, V> String join(Map<K, V> map, String separator, String keyValueSeparator) {
		return join(map, separator, keyValueSeparator, false);
	}
727683
public static Function<Iterable<?>, String> joinFunction(final Joiner joiner) {
    return new Function<Iterable<?>, String>() {
      @Override
      public String apply(final Iterable<?> list) {
        return joiner.join(list);
      }
    };
  }