Java Collection Remove removeAll(Collection left, Collection right)

Here you can find the source of removeAll(Collection left, Collection right)

Description

remove All

License

Open Source License

Declaration

public static <T> void removeAll(Collection<T> left, Collection<T> right) 

Method Source Code

//package com.java2s;
/*/* ww w .j a v a  2 s  . co  m*/
 * Copyright Siemens AG, 2014-2016.
 * With modifications by Bosch Software Innovations GmbH, 2016
 * Part of the SW360 Portal Project.
 *
 * SPDX-License-Identifier: EPL-1.0
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */

import java.util.*;

public class Main {
    public static <T> void removeAll(Collection<T> left, Collection<T> right) {
        if (left != null && right != null) {
            left.removeAll(right);
        }
    }
}

Related

  1. removeAll(Collection c, T... array)
  2. removeAll(Collection c, T... array)
  3. removeAll(Collection ret, Object[] elements)
  4. removeAll(Collection collection, Collection remove)
  5. removeAll(Collection collection, T... elementsToRemove)
  6. removeAll(Collection source, Collection remove)
  7. removeAll(final Collection c, final Object... array)
  8. removeAll(final Collection collection, final Collection remove)
  9. removeAll(final Collection collection, final T... objects)

  10. HOME | Copyright © www.java2s.com 2016