Java ArrayList Create getArrayList(List list)

Here you can find the source of getArrayList(List list)

Description

get Array List

License

Apache License

Declaration

public static <L> List<L> getArrayList(List<L> list) 

Method Source Code

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

import java.util.ArrayList;

import java.util.List;

public class Main {
    public static <L> List<L> getArrayList(List<L> list) {
        if (list == null)
            return new ArrayList<L>();
        return list;
    }/*from  ww w  . j av  a  2  s. c o m*/
}

Related

  1. createArrayListOfArrayList(int size)
  2. getArrayList()
  3. getArrayList()
  4. getArrayList()
  5. getArrayList(final Object o, final Class clazz)
  6. getArrayList(Map map, Object obj)
  7. getArrayList(String[] args)
  8. getArrayListForArray(Object[] rowData)
  9. getArrayListFromInt(int number)