Java List Remove removeAll(List list, Object[] elements)

Here you can find the source of removeAll(List list, Object[] elements)

Description

remove All

License

Open Source License

Declaration

public static void removeAll(List list, Object[] elements) 

Method Source Code

//package com.java2s;
/*/*from  w ww  .j  av  a2  s. c  o  m*/
 * Copyright 2001-2008 Aqris Software AS. All rights reserved.
 * 
 * This program is dual-licensed under both the Common Development
 * and Distribution License ("CDDL") and the GNU General Public
 * License ("GPL"). You may elect to use one or the other of these
 * licenses.
 */

import java.util.List;

public class Main {
    public static void removeAll(List list, Object[] elements) {
        if (elements == null) {
            return;
        }
        for (int i = 0; i < elements.length; i++) {
            list.remove(elements[i]);
        }
    }
}

Related

  1. remove(List list, int position)
  2. remove(List list, T remove)
  3. remove(List list, T value)
  4. remove(Object o, List oldList)
  5. removeAfter(List children, int index)
  6. removeAll(List list, List objects)
  7. removeAll(List idxs, List values)
  8. removeAll(List strings, String string)
  9. removeAll(List list, List indexes)