Here you can find the source of remove(Collection
public static <T> boolean remove(Collection<T> col, T value)
//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); } }