Java List Remove removeFrom(List list, T member)

Here you can find the source of removeFrom(List list, T member)

Description

remove From

License

Open Source License

Declaration

public static <T> List<T> removeFrom(List<T> list, T member) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.ArrayList;

import java.util.List;

public class Main {
    public static <T> List<T> removeFrom(List<T> list, T member) {
        List<T> newList = new ArrayList<T>(list);
        newList.remove(member);//from   w  ww  .j  a  va2 s  .  c  o  m
        return newList;
    }
}

Related

  1. removeEmptyStringsFromList(List list)
  2. removeEmptyStringsInList(List list)
  3. removeEmptyTags(List tags)
  4. removeEmptyValues(final List values)
  5. removeFrom(List col, int from)
  6. removeFromArray(String[] fieldList, String exludeElement)
  7. removeFromListByClass(final List list, final String className)
  8. removeFromListMap(T key, U value, Map> map)
  9. removeIgnoreCase(List l, String s)