Java List from listOf(Class type)

Here you can find the source of listOf(Class type)

Description

list Of

License

Apache License

Declaration

public static <T> List<T> listOf(Class<T> type) 

Method Source Code


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

import java.util.ArrayList;

import java.util.List;

public class Main {
    public static <T> List<T> listOf(Class<T> type) {
        return new ArrayList<>();
    }//from  w  w w .j a  va 2  s .c  o  m
}

Related

  1. listOf(A... values)
  2. listOf(A[] objs)
  3. listOf(Collection coll)
  4. listOf(Collection collection, T... elements)
  5. listOf(Collection... elts)
  6. listOf(double... values)