Android Array to List Convert listOf(final T... items)

Here you can find the source of listOf(final T... items)

Description

list Of

License

Apache License

Declaration

public static <T> List<T> listOf(final T... items) 

Method Source Code

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

import java.util.Arrays;

import java.util.Collections;

import java.util.List;

public class Main {
    public static <T> List<T> listOf(final T... items) {
        return Collections.unmodifiableList(Arrays.asList(items));
    }/*from  w  w  w  . j av  a2s .  co  m*/
}

Related

  1. asList(char[] array)
  2. asList(int[] array)
  3. asList(int[] intArray)
  4. asList(long[] longArray)
  5. convertArrayToList(T[] array)
  6. newArrayList(E... elements)
  7. getList(int[] s, String separator, String quote)
  8. getList(String[] s, String separator, String quote)
  9. getList(String[][] s, String separator, String quote)