Java Collection Remove remove(Collection col, T value)

Here you can find the source of remove(Collection col, T value)

Description

remove

License

MIT License

Declaration

public static <T> boolean remove(Collection<T> col, T value) 

Method Source Code

//package com.java2s;
/*!/*from ww  w  .  j a  v  a2 s .  c  o m*/
 * mifmi-commons4j
 * https://github.com/mifmi/mifmi-commons4j
 *
 * Copyright (c) 2015 mifmi.org and other contributors
 * Released under the MIT license
 * https://opensource.org/licenses/MIT
 */

import java.util.Collection;

public class Main {
    public static <T> boolean remove(Collection<T> col, T value) {
        if (col == null) {
            return false;
        }

        return col.remove(value);
    }
}

Related

  1. getRemovedItems(Collection oldValues, Collection newValues)
  2. minus(Collection primaryCollection, Collection toBeRemovedCollection, Collection target)
  3. remove(Collection c, Object o)
  4. remove(Collection collection, Object object)
  5. remove(Collection p_collection, int p_index, int p_numberOfObjects)
  6. remove(Collection collection, final int count)
  7. remove(Collection collection, T... items)
  8. remove(final Collection c, final Object elem)
  9. remove(final int index, final Collection collection)