Android Utililty Methods Collection Filter

List of utility methods to do Collection Filter

Description

The list of methods to do Collection Filter are organized into topic(s).

Method

Collectionfilter(final Collection objects, final Class filterType)
filter
final Collection<T> filtered = new ArrayList<T>();
for (final Object object : objects) {
    if (filterType.isInstance(object)) {
        filtered.add(filterType.cast(object));
return filtered;