Java Array Create array(T... values)

Here you can find the source of array(T... values)

Description

Wrapper for aray

License

Open Source License

Parameter

Parameter Description
values Array
T Any type

Return

Array

Declaration

public static <T> T[] array(T... values) 

Method Source Code

//package com.java2s;
//License from project: GNU General Public License 

public class Main {
    /**/*from ww w  .  j a  v a 2 s. co m*/
     * Wrapper for aray
     * @param values Array
     * @param <T> Any type
     * @return Array
     */
    public static <T> T[] array(T... values) {
        return values;
    }
}

Related

  1. array(T... ar)
  2. array(T... elements)
  3. array(T... elems)
  4. array(T... ts)
  5. array(T... values)
  6. arrayConstructor(int len)
  7. arrayOf(int... values)
  8. arrayOf(long... values)
  9. arrayOf(T... elements)