List of utility methods to do List Remove
List | remove(Collection entityList1, Collection entityList2, Comparator comparator) remove List result = new ArrayList(); for (Iterator iter1 = entityList1.iterator(); iter1.hasNext();) { Object o1 = iter1.next(); boolean containedOnList2 = false; for (Iterator iter2 = entityList2.iterator(); iter2.hasNext();) { Object o2 = iter2.next(); if (comparator.compare(o1, o2) == 0) { containedOnList2 = true; ... |
T | remove(final List remove return index < list.size() ? list.remove(index) : defaultValue;
|
List | remove(final List Removes the. for (final T object : objects) list.remove(object); return list; |
boolean | remove(List aList, Object anObj) Removes given object from given list (accepts null list). return aList == null ? false : aList.remove(anObj);
|
void | remove(List models, int start, int count) remove models.subList(start, start + count).clear(); |
List | remove(List extends T> list, List extends T> elements) remove final ArrayList<T> result = new ArrayList<T>(list); result.removeAll(elements); return result; |
void | remove(List> list, Class> type) remove for (Iterator<?> it = list.iterator(); it.hasNext();) { Object item = it.next(); if (type.isInstance(item)) { it.remove(); |
List | remove(List as, int start, int end) remove List<A> result = new ArrayList<A>(as.subList(start, end)); for (int i = 0; i < end - start; i++) as.remove(start); return result; |
boolean | remove(List remove Iterator<E> itr = list.iterator(); while (itr.hasNext()) { E curElement = itr.next(); if ((curElement == element) || curElement.equals(element)) { itr.remove(); return true; return false; |
void | remove(List Removes the given object from the given list , comparing each element in the list with equals .
for (Iterator<E> it = list.iterator(); it.hasNext();) { if (it.next().equals(object)) { it.remove(); |