Java List Null Empty emptyStringList()

Here you can find the source of emptyStringList()

Description

empty String List

License

Open Source License

Declaration

public static List<String> emptyStringList() 

Method Source Code

//package com.java2s;
/*//from w  w w.  j  av a2  s .c o  m
 * This file is part of Infinitest.
 *
 * Copyright (C) 2010
 * "Ben Rady" <benrady@gmail.com>,
 * "Rod Coffin" <rfciii@gmail.com>,
 * "Ryan Breidenbach" <ryan.breidenbach@gmail.com>, et al.
 *
 * Infinitest is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Infinitest is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Infinitest.  If not, see <http://www.gnu.org/licenses/>.
 */

import java.util.ArrayList;
import java.util.List;

public class Main {
    public static List<String> emptyStringList() {
        return new ArrayList<String>();
    }
}

Related

  1. addIgnoreNull(final List list, final T... objects)
  2. addListNotNullValue(List sourceList, V value)
  3. addNonEmpty(List list, String value)
  4. addNotNull(List list, T t)
  5. countIgnoreNull(List list)
  6. emptyToNull(List list)
  7. emptyToNull(List list)
  8. equalsEmptyEqNull(List list1, List list2)
  9. equalsNullSafe(List list1, List list2)