Lines Matching defs:element
74 * Returns a new array that prepends {@code element} to {@code array}.
76 * @param element the element to prepend to the front of {@code array}
79 * {@code element} occupying the first position, and the
82 public static <T> T[] concat(@Nullable T element, T[] array) {
84 result[0] = element;
90 * Returns a new array that appends {@code element} to {@code array}.
93 * @param element the element to append to the end
95 * the same contents as {@code array}, plus {@code element} occupying the
98 public static <T> T[] concat(T[] array, @Nullable T element) {
100 result[array.length] = element;
120 * the array has more elements than the collection), the element in the array
133 * not a supertype of the runtime type of every element in the specified
168 for (Object element : elements) {
169 array[i++] = element;