Java Array to List toList(E... e)

Here you can find the source of toList(E... e)

Description

to List

License

Apache License

Declaration

@SafeVarargs
public static <E> List<E> toList(E... e) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Arrays;
import java.util.List;

public class Main {

    @SafeVarargs
    public static <E> List<E> toList(E... e) {
        return Arrays.asList(e);
    }/*from   w  w w.j  a v  a  2 s  . com*/
}

Related

  1. toList(Boolean[] list)
  2. toList(byte[] array)
  3. toList(byte[] array)
  4. toList(double[] array)
  5. toList(double[] array)
  6. toList(E... values)
  7. toList(E[] array, int fromIndex, int toIndex)
  8. toList(final double[] array)
  9. toList(final E[] array)