Java List Clone cloneListExcludingAttribute(String attribute, List attributes)

Here you can find the source of cloneListExcludingAttribute(String attribute, List attributes)

Description

clone List Excluding Attribute

License

Open Source License

Declaration

public static List<String> cloneListExcludingAttribute(String attribute, List<String> attributes) 

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 List<String> cloneListExcludingAttribute(String attribute, List<String> attributes) {
        List<String> clonedList = new ArrayList<>(attributes);
        clonedList.remove(attribute);/*  w  w w.  j a v  a2  s. c  o  m*/
        return clonedList;
    }
}

Related

  1. cloneList(List l)
  2. cloneList(List sOriginal)
  3. cloneList(List xData)
  4. cloneList(List curList)
  5. cloneList(List l)
  6. cloneListOfStrings(List list)
  7. cloneMerchantList(List merchantIDs)
  8. cloneProbabilities( List targetProbs)
  9. cloneStringList(List list)