APISonar


java.util.ArrayList.removeAll

> java > util > ArrayList > removeAll
java APIs util APIs ArrayList APIs removeAll APIs

Example 1
private ArrayList<T> mItems;

	public void removeAll(Collection<T> items) {
		mItems.removeAll(items);
		notifyDataSetChanged();
	}
Example 2
private ArrayList myArrayList;

	public boolean removeAll(Collection<?> c) {
		// TODO Auto-generated method stub
		return myArrayList.removeAll(c);
	}
Example 3
private ArrayList<T> value = new ArrayList<T>();

    public K removeAll(Collection<? extends T>  v) {
        if (value.removeAll(v)) {
        	firePropertyChanged();
        }
        return (K)parent.parent;
    }
Example 4
private final ArrayList<Object>	list							= new ArrayList<Object>();

	public boolean removeAll(Collection<?> c) {
		convertAll();
		setDirty();
		return list.removeAll(c);
	}
Example 5
protected final ArrayList<T> mData = new ArrayList<T>();

    public void removeAll(final List<T> collection) {
        mData.removeAll(collection);
        notifyDataSetChanged();
    }
Example 6
protected ArrayList value;

    protected boolean remove(ArrayList vals)
    {
        if (vals == null)
        {
            return false;
        }

        value.removeAll(vals);
        fireOptionChangeEvent();

        return true;
    }
Example 7
private final ArrayList<T> objects;

	public boolean removeAll(final Collection<?> c) {
		final boolean changed = objects.removeAll(c);
		if (changed) announceStructureChange();
		return changed;
	}
Example 8
private ArrayList<RxRotateBarBasic> mRatingBars;

    public void removeAll() {
        mRatingBars.removeAll(mRatingBars);
        clear();
    }
Example 9
private ArrayList itemResults = new ArrayList();

    public int getItemCount() {
        if(itemResults == null){
            return 0;
        }
        if (!createdExpanded && playlists != null) {
            itemResults.removeAll(playlists);
        }
        if (!collectExpanded) {
            itemResults.removeAll(netplaylists);
        }
        return itemResults.size();
    }
Example 10
public synchronized boolean removeAll(Collection<?> c) {
    ArrayList<E> newList = new ArrayList<E>(list);
    // Removals in ArrayList won't break sorting
    boolean changed = newList.removeAll(c);
    list = Collections.unmodifiableList(newList);
    return changed;
  }
Example 11
public Iterable<T> allModelsExceptScheduled2Drop() {
    final ArrayList<T> rv = new ArrayList<>(myModels);
    rv.removeAll(myExactModelsToDrop.keySet());
    return rv;
  }
Example 12
<T> List<T> subtract(Collection<T> theSubtractFrom, Collection<T> theToSubtract) {
		assert theSubtractFrom != theToSubtract;

		if (theSubtractFrom.isEmpty()) {
			return new ArrayList<>();
		}

		ArrayList<T> retVal = new ArrayList<>(theSubtractFrom);
		retVal.removeAll(theToSubtract);
		return retVal;
	}
Example 13
public static final void removeNullValues(ArrayList types) {
            ArrayList filter = new ArrayList(1);
            filter.add(null);
            types.removeAll(filter);
        }
Example 14
private ArrayList<View> captureTransitioningViews() {
        if (getViewsTransition() == null) {
            return null;
        }
        ArrayList<View> transitioningViews = new ArrayList<View>();
        getDecor().captureTransitioningViews(transitioningViews);
        transitioningViews.removeAll(getSharedElements());
        return transitioningViews;
    }
Example 15
public static <T> List<T> removeNulls(List<T> list) {
        final ArrayList<T> result = new ArrayList<>(list);
        result.removeAll(Collections.singleton(null));
        return result;
    }
Example 16
protected ArrayList<Field> mFields = new ArrayList<Field>();

    public void removeHeader(String name)
    {
        ArrayList<Field> removeFields = new ArrayList<Field>();
        for (Field field : mFields)
        {
            if (field.name.equalsIgnoreCase(name))
            {
                removeFields.add(field);
            }
        }
        mFields.removeAll(removeFields);
    }
Example 17
private void discard(ArrayList<String> list, String name) {
        ArrayList<String> tmp = new ArrayList<String>();
        tmp.add(name);
        list.removeAll(tmp);
    }
Example 18
public void removeURLs(Collection<URL> urls) throws Exception {
        if (urls.contains(null)) {
            throw new NullPointerException("urls=" + urls);
        }
        ArrayList<URL> arr = new ArrayList<URL>();
        if (this.prevs != null) {
            arr.addAll(this.prevs);
        }
        arr.removeAll(urls);
        setURLs(arr);
    }
Example 19
private ArrayList<DataConnection> dataConnectionList;

    private void destroyAllDataConnectionList() {
        if(dataConnectionList != null) {
            dataConnectionList.removeAll(dataConnectionList);
        }
    }
Example 20
public boolean collectionSubtype(ArrayList<String> arrayList1, ArrayList<String> arrayList2) {
    boolean result = arrayList1.contains("ok");
    result &= arrayList1.contains(null);
    result &= arrayList1.remove("ok");
    result &= arrayList1.remove(null);
    result &= arrayList1.containsAll(arrayList2);
    result &= arrayList1.containsAll(null);
    result &= arrayList1.removeAll(arrayList2);
    result &= arrayList1.removeAll(null);
    result &= arrayList1.retainAll(arrayList2);
    return result && arrayList1.retainAll(null);
  }
Example 21
private List<String> notFound(List<String> theExpectedFilenameFragments) {
		Set<String> foundFragments = new HashSet<>();
		for (String nextExpected : theExpectedFilenameFragments) {
			for (ITermLoaderSvc.FileDescriptor next : myUncompressedFileDescriptors) {
				if (next.getFilename().contains(nextExpected)) {
					foundFragments.add(nextExpected);
					break;
				}
			}
		}

		ArrayList<String> notFoundFileNameFragments = new ArrayList<>(theExpectedFilenameFragments);
		notFoundFileNameFragments.removeAll(foundFragments);
		return notFoundFileNameFragments;
	}
Example 22
private ArrayList<MessageRef> messages = new ArrayList<MessageRef>();

    public boolean remove(List<Long> rids) {
        ArrayList<MessageRef> toRemove = find(rids);
        if (toRemove.size() > 0) {
            messages.removeAll(toRemove);
            return false;
        }
        return false;
    }
Example 23
private ArrayList<EntityWrapper<T>> mHeaderDatasList = new ArrayList<>();

    void removeIndexableHeaderAdapter(IndexableHeaderAdapter adapter) {
        mHeaderDatasList.removeAll(adapter.getDatas());
        if (mDatasList.size() > 0) {
            mDatasList.removeAll(adapter.getDatas());
        }
        mHeaderAdapterMap.remove(adapter.getItemViewType());
        notifyDataSetChanged();
    }
Example 24
final protected ArrayList<View> mTransitioningViews = new ArrayList<View>();

    protected void viewsReady(ArrayList<String> accepted, ArrayList<String> localNames) {
        setSharedElements(accepted, localNames);
        if (getViewsTransition() != null) {
            getDecor().captureTransitioningViews(mTransitioningViews);
            mTransitioningViews.removeAll(mSharedElements);
            Rect r = new Rect();
            for (int i = mTransitioningViews.size() - 1; i >= 0; i--) {
                View view = mTransitioningViews.get(i);
                if (!view.getGlobalVisibleRect(r)) {
                    mTransitioningViews.remove(i);
                }
            }
        }
        setEpicenter();
    }
Example 25
private void removeIgnoreChangeFile(ArrayList<String> array) {
        ArrayList<String> removeList = new ArrayList<>();
        for (String name : array) {
            if (Utils.checkFileInPattern(config.mResIgnoreChangePattern, name)) {
                Logger.e("ignore change resource file: " + name);
                removeList.add(name);
            }
        }
        array.removeAll(removeList);
    }