Lines Matching defs:element
47 * Returns a new array that prepends {@code element} to {@code array}.
49 * @param element the element to prepend to the front of {@code array}
52 * {@code element} occupying the first position, and the
55 public static <T> T[] concat(@Nullable T element, T[] array) {
57 result[0] = element;
63 * Returns a new array that appends {@code element} to {@code array}.
66 * @param element the element to append to the end
68 * the same contents as {@code array}, plus {@code element} occupying the
71 public static <T> T[] concat(T[] array, @Nullable T element) {
73 result[array.length] = element;
93 * the array has more elements than the collection), the element in the array
106 * not a supertype of the runtime type of every element in the specified
141 for (Object element : elements) {
142 array[i++] = element;